aboutsummaryrefslogtreecommitdiffstats
path: root/main/tiff/CVE-2017-9936.patch
blob: bbf920f698a570e34fbad063d122063a24152aaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/libtiff/tif_jbig.c b/libtiff/tif_jbig.c
index 5f5f75e2..c75f31d9 100644
--- a/libtiff/tif_jbig.c
+++ b/libtiff/tif_jbig.c
@@ -94,6 +94,7 @@ static int JBIGDecode(TIFF* tif, uint8* buffer, tmsize_t size, uint16 s)
 			     jbg_strerror(decodeStatus)
 #endif
 			     );
+		jbg_dec_free(&decoder);
 		return 0;
 	}