Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
mtheall committed Aug 5, 2022
1 parent a39fc96 commit aa92955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/huff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ std::vector<uint8_t> huffEncode (const void *source, size_t len)
}

// we're done with the Huffman tree and lookup table
root.release ();
root.reset ();
lookup.clear ();

// flush the bitstream
Expand Down

0 comments on commit aa92955

Please sign in to comment.