diff --git a/src/huffman.c b/src/huffman.c index 477535e3..e14c7e19 100644 --- a/src/huffman.c +++ b/src/huffman.c @@ -312,6 +312,9 @@ compile_huffman_tree(br_huffman_table_t** table, } total_rows = 1; + + /*transfer new table back to parent*/ + *table = new_table; } else { *table = malloc(0); return HUFFMAN_EMPTY_TREE;