projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5884a5
)
if map_library has allocated a buffer for phdrs, free it on success too
author
Rich Felker
<dalias@aerifal.cx>
Fri, 2 Aug 2013 13:59:02 +0000
(09:59 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 2 Aug 2013 13:59:02 +0000
(09:59 -0400)
this fixes an oversight in the previous commit.
src/ldso/dynlink.c
patch
|
blob
|
history
diff --git
a/src/ldso/dynlink.c
b/src/ldso/dynlink.c
index 0ae7177f4425db1af2cada4ea7768c0c0319a2be..ff99489a207548ee133dfb49ffc2cc0bd5f9c1ff 100644
(file)
--- a/
src/ldso/dynlink.c
+++ b/
src/ldso/dynlink.c
@@
-421,6
+421,7
@@
static void *map_library(int fd, struct dso *dso)
dso->base = base;
dso->dynv = (void *)(base+dyn);
if (dso->tls_size) dso->tls_image = (void *)(base+tls_image);
+ free(allocated_buf);
return map;
noexec:
errno = ENOEXEC;