From 76156ea152d970103a4c69541d816cacaf0ebc74 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 1 Sep 1998 17:58:59 +0000 Subject: Update. 1998-09-01 17:53 Ulrich Drepper * 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. --- elf/dl-close.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'elf/dl-close.c') diff --git a/elf/dl-close.c b/elf/dl-close.c index e89e46d..94978ed 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); } -- cgit v1.1