From 8b28aa9c94e7c6179d70fe73afcd3fff29809d61 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 27 Aug 2012 10:07:32 -0400 Subject: fix bug caused by main app & libc having map set; cannot free them --- src/ldso/dynlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ldso') 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; } } -- cgit v1.2.3-70-g09d2