aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-close.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-09-08 20:03:14 +0000
committerUlrich Drepper <drepper@redhat.com>2001-09-08 20:03:14 +0000
commit1181062126ed5daf104aa9f7beb847055c1d4adc (patch)
tree0454507ec9ae7d7ddea8b1518a142cd22ee188ec /elf/dl-close.c
parentf6233fe00300ec9521967b63ed9b35184f27db29 (diff)
downloadglibc-1181062126ed5daf104aa9f7beb847055c1d4adc.zip
glibc-1181062126ed5daf104aa9f7beb847055c1d4adc.tar.gz
glibc-1181062126ed5daf104aa9f7beb847055c1d4adc.tar.bz2
Update.
2001-09-08 Ulrich Drepper <drepper@redhat.com> * elf/dl-object.c: Avoid allocating extra memory block for name. * elf/dl-close.c (_dl_close): Don't free l_libname if it is no allocated separately. * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
Diffstat (limited to 'elf/dl-close.c')
-rw-r--r--elf/dl-close.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c
index 31b4863..de4b91a 100644
--- a/elf/dl-close.c
+++ b/elf/dl-close.c
@@ -254,7 +254,8 @@ _dl_close (void *_map)
{
struct libname_list *this = lnp;
lnp = lnp->next;
- free (this);
+ if (!this->dont_free)
+ free (this);
}
while (lnp != NULL);