diff options
Diffstat (limited to 'ldso/util')
-rw-r--r-- | ldso/util/ldd.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ldso/util/ldd.c b/ldso/util/ldd.c index 470368a3c..68221faab 100644 --- a/ldso/util/ldd.c +++ b/ldso/util/ldd.c @@ -176,8 +176,6 @@ void locate_library_file(Elf32_Ehdr* ehdr, Elf32_Dyn* dynamic, char *strtab, int if (*buf != '\0') { lib->path = buf; return; - } else { - free(buf); } } @@ -193,8 +191,6 @@ void locate_library_file(Elf32_Ehdr* ehdr, Elf32_Dyn* dynamic, char *strtab, int if (*buf != '\0') { lib->path = buf; return; - } else { - free(buf); } } |