提交 8d01dfc7 编写于 作者: R Rich Felker

if map_library has allocated a buffer for phdrs, free it on success too

this fixes an oversight in the previous commit.
上级 d5884a57
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册