mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
fix bug caused by main app & libc having map set; cannot free them
This commit is contained in:
parent
f419bcb9dc
commit
8b28aa9c94
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue