shithub: jbig2

Download patch

ref: ab161268b93b136764dc50b9a982b00635a71c03
parent: 772a43f4c2b165678555d4df17c10353d2f4d92b
author: Sebastian Rasmussen <sebras@gmail.com>
date: Fri Jun 14 10:47:44 EDT 2019

jbig2dec: Fix leak of log message in command line tool.

--- a/jbig2dec.c
+++ b/jbig2dec.c
@@ -589,6 +589,8 @@
 cleanup:
     flush_errors(&params);
     jbig2_ctx_free(ctx);
+    if (params.last_message)
+        free(params.last_message);
     if (params.output_filename)
         free(params.output_filename);
     if (params.hash)