mirror of
https://github.com/fluencelabs/musl
synced 2025-04-29 09:02:16 +00:00
fix bug caused by main app & libc having map set; cannot free them
This commit is contained in:
parent
f419bcb9dc
commit
8b28aa9c94
@ -572,7 +572,7 @@ static void free_all(struct dso *p)
|
|||||||
struct dso *n;
|
struct dso *n;
|
||||||
while (p) {
|
while (p) {
|
||||||
n = p->next;
|
n = p->next;
|
||||||
if (p->map) free(p);
|
if (p->map && p!=libc && p!=head) free(p);
|
||||||
p = n;
|
p = n;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user