From ace9d9651cefd622e35d49eebe0dafefc8816799 Mon Sep 17 00:00:00 2001 From: Niclas Hofmann Date: Thu, 7 Feb 2019 15:33:33 +0100 Subject: [PATCH] Fix issue #19 --- xdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xdu.c b/xdu.c index 37b0a02..4ab76a7 100644 --- a/xdu.c +++ b/xdu.c @@ -145,7 +145,7 @@ makenode(char* name, long long size) struct node* np; np = (struct node*)calloc(1, sizeof(struct node)); - np->name = strdup(name); + np->name = name; np->size = size; np->num = nnodes; nnodes++;