Commit 956caeb8 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

compext/Png.c: Nullify after free

parent e440e722
......@@ -532,8 +532,8 @@ char *PngCompressData(XImage *image, int *compressed_size)
dy, h);
#endif
free(srcBuf);
free(image_index);
free(srcBuf); srcBuf = NULL;
free(image_index); image_index = NULL;
if (setjmp(png_jmpbuf(png_ptr)))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment