diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-09-01 17:58:59 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-09-01 17:58:59 +0000 |
commit | 76156ea152d970103a4c69541d816cacaf0ebc74 (patch) | |
tree | 610f021a0fec311572012deb6fc23eec0f4ca9ac /elf/dl-close.c | |
parent | a8a1269d8814fe54d5d25619ca138849bca29b78 (diff) | |
download | glibc-76156ea152d970103a4c69541d816cacaf0ebc74.tar glibc-76156ea152d970103a4c69541d816cacaf0ebc74.tar.gz glibc-76156ea152d970103a4c69541d816cacaf0ebc74.tar.bz2 glibc-76156ea152d970103a4c69541d816cacaf0ebc74.zip |
Update.
1998-09-01 17:53 Ulrich Drepper <drepper@cygnus.com>
* elf/dl-load.c (add_name_to_object): Change return type to void and
make NAME parameter const. Allocate room for NAME in same memory
block used for l_libname entry.
(_dl_map_object_from_fd): Don't free NAME on failure.
(map_segment): Pass SONAME to add_name_to_object, not a copy.
(_dl_map_object): Don't create copy of NAME. Pass NAME to
_dl_map_object_from_fd.
* elf/dl-object.c (dl_new_object): Allocate room for NAME in same
memory block used for l_libname entry.
* elf/dl-close.c: Adjust free()ing for this change.
Diffstat (limited to 'elf/dl-close.c')
-rw-r--r-- | elf/dl-close.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c index e89e46d51f..94978ed961 100644 --- a/elf/dl-close.c +++ b/elf/dl-close.c @@ -148,11 +148,11 @@ _dl_close (struct link_map *map) lnp = imap->l_libname; do { - free (lnp->name); + struct libname_list *this = lnp; lnp = lnp->next; + free (this); } while (lnp != NULL); - free (imap->l_libname); free (imap); } |