[PATCH] hash: fix a memory leak