mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
Pass back error code from dlerror_run
This commit is contained in:
parent
c966526aa4
commit
fdc86bc9a8
@ -1,5 +1,8 @@
|
||||
2011-09-07 Ulrich Drepper <drepper@gmail.com>
|
||||
|
||||
* elf/dl-libc.c (dlerror_run): Pass back error code from
|
||||
dl_catch_error.
|
||||
|
||||
[BZ #13123]
|
||||
* elf/dl-load.c (lose): Free l_origin if it is valid.
|
||||
|
||||
|
@ -45,10 +45,10 @@ dlerror_run (void (*operate) (void *), void *args)
|
||||
const char *last_errstring = NULL;
|
||||
bool malloced;
|
||||
|
||||
(void) GLRO(dl_catch_error) (&objname, &last_errstring, &malloced,
|
||||
operate, args);
|
||||
int result = (GLRO(dl_catch_error) (&objname, &last_errstring, &malloced,
|
||||
operate, args)
|
||||
?: last_errstring != NULL);
|
||||
|
||||
int result = last_errstring != NULL;
|
||||
if (result && malloced)
|
||||
free ((char *) last_errstring);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user