OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2b4541
)
Don't free memory prematurely
author
Eric Andersen
<andersen@codepoet.org>
Sat, 2 Feb 2002 09:20:12 +0000
(09:20 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Sat, 2 Feb 2002 09:20:12 +0000
(09:20 -0000)
ldso/util/ldd.c
patch
|
blob
|
history
diff --git
a/ldso/util/ldd.c
b/ldso/util/ldd.c
index
470368a
..
68221fa
100644
(file)
--- 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);
}
}