fixed memory leak in hashmap_put_noalloc