commit | 8b28aa9c94e7c6179d70fe73afcd3fff29809d61 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Mon Aug 27 10:07:32 2012 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Mon Aug 27 10:07:32 2012 -0400 |
tree | 0d285f565fbd1b6f7f2121be5095bba4e644b10f | |
parent | f419bcb9dcfb6af60fbf1d58d92caf4b3d62a4da [diff] |
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 b8c26ac..93a4b44 100644 --- a/src/ldso/dynlink.c +++ b/src/ldso/dynlink.c
@@ -572,7 +572,7 @@ struct dso *n; while (p) { n = p->next; - if (p->map) free(p); + if (p->map && p!=libc && p!=head) free(p); p = n; } }