diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-06-20 19:54:44 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-06-22 11:30:53 +0200 |
commit | 956caeb8af1f14a52879d39c98caeb1e13edd546 (patch) | |
tree | 0de77026ec2159c5dc4dfe9a338a90fc23fde91a /nx-X11/programs/Xserver/hw/nxagent/compext | |
parent | e440e722d8639411722d8a2499df46fe18c45f31 (diff) | |
download | nx-libs-956caeb8af1f14a52879d39c98caeb1e13edd546.tar.gz nx-libs-956caeb8af1f14a52879d39c98caeb1e13edd546.tar.bz2 nx-libs-956caeb8af1f14a52879d39c98caeb1e13edd546.zip |
compext/Png.c: Nullify after free
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/compext')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/compext/Png.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/compext/Png.c b/nx-X11/programs/Xserver/hw/nxagent/compext/Png.c index 77a1941ea..5c3a27612 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/compext/Png.c +++ b/nx-X11/programs/Xserver/hw/nxagent/compext/Png.c @@ -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))) { |