projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f419bcb
)
fix bug caused by main app & libc having map set; cannot free them
author
Rich Felker
<dalias@aerifal.cx>
Mon, 27 Aug 2012 14:07:32 +0000
(10:07 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 27 Aug 2012 14:07:32 +0000
(10:07 -0400)
src/ldso/dynlink.c
patch
|
blob
|
history
diff --git
a/src/ldso/dynlink.c
b/src/ldso/dynlink.c
index b8c26ace57a650500e3db1582757213d2d199b87..93a4b44c1165035db3e2852e8db682cd9b664643 100644
(file)
--- a/
src/ldso/dynlink.c
+++ b/
src/ldso/dynlink.c
@@
-572,7
+572,7
@@
static void free_all(struct dso *p)
struct dso *n;
while (p) {
n = p->next;
- if (p->map) free(p);
+ if (p->map
&& p!=libc && p!=head
) free(p);
p = n;
}
}