Bug fixed in freeObject() function:
*** Error in `./kplc': double free or corruption (fasttop): 0x0000000001853d90 ***
Aborted (core dumped)