fix a potential memory leak in handling uthash