summaryrefslogtreecommitdiff
path: root/utils/ldd.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/ldd.c')
-rw-r--r--utils/ldd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/ldd.c b/utils/ldd.c
index e6a331dad..5accdc767 100644
--- a/utils/ldd.c
+++ b/utils/ldd.c
@@ -461,6 +461,8 @@ static struct library * find_elf_interpreter(Elf32_Ehdr* ehdr)
newlib = cur;
free(newlib->name);
free(newlib->path);
+ newlib->name = NULL;
+ newlib->path = NULL;
return NULL;
}
}