I am trying to implement the adaptive huffman code, but while trying to build the tree i get a segmentation fault when executing the code at line \"currentNYT->lchild = newNYT;\" in addnode() function
The following block is nested by Huffman block markers -HUFF---------------------------------------------------------------------0084-