fix bug caused by main app & libc having map set; cannot free them

This commit is contained in:
Rich Felker 2012-08-27 10:07:32 -04:00
parent f419bcb9dc
commit 8b28aa9c94

View File

@ -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;
}
}