Fixed #5645: realloc return handling
static void HuffmanTree_init(HuffmanTree* tree)
{
  tree->tree2d = 0;
  tree->tree1d = 0;
  tree->lengths = 0;
  tree->maxbitlen = 0;
  tree->numcodes = 0;
}

static void HuffmanTree_init(HuffmanTree* tree)
{
  tree->tree2d = 0;
  tree->tree1d = 0;
  tree->lengths = 0;
  tree->maxbitlen = 0;
  tree->numcodes = 0;
}
