summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ldso/dynlink.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}