mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00:00
2006-01-18 Jakub Jelinek <jakub@redhat.com>
* elf/dl-deps.c (_dl_map_object_deps): In case of failure also make a copy of objname string.
This commit is contained in:
parent
cf407dfbff
commit
65515a052a
@ -247,6 +247,7 @@ _dl_map_object_deps (struct link_map *map,
|
||||
if (__builtin_expect (errstring != NULL, 0))
|
||||
{
|
||||
char *new_errstring = strdupa (errstring);
|
||||
objname = strdupa (objname);
|
||||
if (malloced)
|
||||
free ((char *) errstring);
|
||||
errstring = new_errstring;
|
||||
@ -337,6 +338,7 @@ _dl_map_object_deps (struct link_map *map,
|
||||
if (__builtin_expect (errstring != NULL, 0))
|
||||
{
|
||||
char *new_errstring = strdupa (errstring);
|
||||
objname = strdupa (objname);
|
||||
if (malloced)
|
||||
free ((char *) errstring);
|
||||
errstring = new_errstring;
|
||||
|
Loading…
Reference in New Issue
Block a user