diff options
author | clyne <clyne@bitgloo.com> | 2020-07-01 19:42:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-01 19:42:43 -0400 |
commit | 40fc0b29f5fd4a8d2ddecc60d74d1b50390b2366 (patch) | |
tree | 66efdbd44e12c6a8987a6b4fb34d0ce7c0a68cf6 | |
parent | c4a598007b33f9d6f678822633845bfe1de467ef (diff) |
Added missing deallocation
-rw-r--r-- | consteval_huffman.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/consteval_huffman.hpp b/consteval_huffman.hpp index b7ea819..7c1aabf 100644 --- a/consteval_huffman.hpp +++ b/consteval_huffman.hpp @@ -130,8 +130,10 @@ private: output[bytes - 1] |= (1 << bits); if (++bits == 8) { bits = 0; - if (--bytes == 0) - return; + if (--bytes == 0) { + i = 1; + break; + } } leaf = parent; } |