free tmp after unlinking it
We create a temporary file to save memory, and we will remove it after reading memory to buffer. But we free the variable that contains the temporary filename before we remove it. So we should free tmp after unlinking it.
Showing
想要评论请 注册 或 登录