patched up memory leak with void * in hashtable