From 43e1d5b3df14e44d7b37641b06e5bed0c404c457 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Wed, 23 Oct 2013 15:46:37 +0900 Subject: [PATCH] [xhash] fix a bug in xh_destroy --- extlib/xhash/xhash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extlib/xhash/xhash.h b/extlib/xhash/xhash.h index 4cf70ae6..3b9509c0 100644 --- a/extlib/xhash/xhash.h +++ b/extlib/xhash/xhash.h @@ -93,8 +93,8 @@ xh_destory(struct xhash *x) for (i = 0; i < x->size; ++i) { e = x->buckets[i]; while (e) { - e = e->next; free((void*)e->key); + e = e->next; free(e); } }