git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / src / libchdr_huffman.c
index 5162b95..556aa34 100644 (file)
@@ -295,6 +295,9 @@ enum huffman_error huffman_import_tree_huffman(struct huffman_decoder* decoder,
                }
        }
 
+    /* make sure we free the local huffman decoder */
+    delete_huffman_decoder(smallhuff);
+
        /* make sure we ended up with the right number */
        if (curcode != decoder->numcodes)
                return HUFFERR_INVALID_DATA;