projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix bug caused by main app & libc having map set; cannot free them
[musl]
/
src
/
ldso
/
dynlink.c
diff --git
a/src/ldso/dynlink.c
b/src/ldso/dynlink.c
index
b8c26ac
..
93a4b44
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;
}
}