Browse Source

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

rs-1.0
Rich Felker 14 years ago
parent
commit
8b28aa9c94
  1. 2
      src/ldso/dynlink.c

2
src/ldso/dynlink.c

@ -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…
Cancel
Save