skynet abort

This commit is contained in:
云风
2012-11-08 14:57:51 +08:00
parent 37d8020155
commit b6314b537f
10 changed files with 84 additions and 22 deletions

View File

@@ -181,12 +181,12 @@ static void
_hash_delete(struct hashmap *hash) {
int i;
for (i=0;i<HASH_SIZE;i++) {
struct keyvalue ** ptr = &hash->node[i];
while (*ptr) {
struct keyvalue * node = *ptr;
ptr = &node->next;
struct keyvalue * node = hash->node[i];
while (node) {
struct keyvalue * next = node->next;
_release_queue(node->queue);
free(node);
node = next;
}
}
free(hash);