if map_library has allocated a buffer for phdrs, free it on success too
this fixes an oversight in the previous commit.
This commit is contained in:
parent
d5884a574c
commit
8d01dfc72a
1 changed files with 1 additions and 0 deletions
|
|
@ -421,6 +421,7 @@ static void *map_library(int fd, struct dso *dso)
|
||||||
dso->base = base;
|
dso->base = base;
|
||||||
dso->dynv = (void *)(base+dyn);
|
dso->dynv = (void *)(base+dyn);
|
||||||
if (dso->tls_size) dso->tls_image = (void *)(base+tls_image);
|
if (dso->tls_size) dso->tls_image = (void *)(base+tls_image);
|
||||||
|
free(allocated_buf);
|
||||||
return map;
|
return map;
|
||||||
noexec:
|
noexec:
|
||||||
errno = ENOEXEC;
|
errno = ENOEXEC;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue