Restore the initial state of freeObject() function, the previous bug (*** Error in `./kplc': double free or corruption (fasttop): 0x0000000001853d90 ***) didn't come from this function