mirror of git://git.musl-libc.org/musl
fix stale pointer issue in dynamic linker with dlopen
This commit is contained in:
parent
06933cc724
commit
9e17b71fa6
|
@ -473,6 +473,7 @@ void *__dynlink(int argc, char **argv, size_t *got)
|
|||
*libc->prev->next = *libc;
|
||||
libc = libc->prev->next;
|
||||
if (libc->next) libc->next->prev = libc;
|
||||
if (tail == &lib) tail = libc;
|
||||
} else {
|
||||
free_all(head);
|
||||
free(sys_path);
|
||||
|
|
Loading…
Reference in New Issue