From: Rich Felker Date: Mon, 27 Aug 2012 14:07:32 +0000 (-0400) Subject: fix bug caused by main app & libc having map set; cannot free them X-Git-Tag: v0.9.5~68 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8b28aa9c94e7c6179d70fe73afcd3fff29809d61;p=oweals%2Fmusl.git fix bug caused by main app & libc having map set; cannot free them --- diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index b8c26ace..93a4b44c 100644 --- a/src/ldso/dynlink.c +++ b/src/ldso/dynlink.c @@ -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; } }