Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代码中存在gd函数内存泄露 #9

Open
cyg1981 opened this issue Aug 2, 2016 · 2 comments
Open

代码中存在gd函数内存泄露 #9

cyg1981 opened this issue Aug 2, 2016 · 2 comments

Comments

@cyg1981
Copy link

cyg1981 commented Aug 2, 2016

在make_thumb函数中,562行。
需要在562行之前,添加一个语句"gdImageDestroy(info->dst_im);",用来释放make_thumb函数开始的地方分配的内存。

@cyg1981
Copy link
Author

cyg1981 commented Aug 2, 2016

用ab命令,并发测试过

@jicki
Copy link

jicki commented Mar 27, 2017

请问一下,解决了吗?

是否会报

kernel: nginx[6710]: segfault at 0 ip 00007fc5102ef167 sp 00007ffdc2e8dad0 error 4 in libgd.so.2.0.0[7fc5102e6000+23000]

错误...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants