aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/device.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/device.c b/core/device.c
index 89e530f..c5f8634 100644
--- a/core/device.c
+++ b/core/device.c
@@ -321,8 +321,10 @@ static struct dt_property *new_property(struct dt_node *node,
char *path;
if (!p) {
+ path = dt_get_path(node);
prerror("Failed to allocate property \"%s\" for %s of %zu bytes\n",
- name, dt_get_path(node), size);
+ name, path, size);
+ free(path);
abort();
}
if (dt_find_property(node, name)) {