mirror of
https://git.musl-libc.org/git/musl
synced 2025-02-15 17:54:23 +03: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