mirror of
https://github.com/fluencelabs/musl
synced 2025-04-25 15:22:15 +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;
|
||||
while (p) {
|
||||
n = p->next;
|
||||
if (p->map) free(p);
|
||||
if (p->map && p!=libc && p!=head) free(p);
|
||||
p = n;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user