[xhash] fix a bug in xh_destroy

This commit is contained in:
Yuichi Nishiwaki 2013-10-23 15:46:37 +09:00
parent 947ddc45c8
commit 43e1d5b3df
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}