summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-02-02 09:20:12 +0000
committerEric Andersen <andersen@codepoet.org>2002-02-02 09:20:12 +0000
commit8ae6117ea8224e22f8d4d82d3b6d628c4ced6f62 (patch)
treebbd0312d39d4f02794558571b6203c48e63e0c1c
parente2b45414996bdb5d26b574c22e4b6652995b3466 (diff)
Don't free memory prematurely
-rw-r--r--ldso/util/ldd.c4
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);
}
}