mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
skynet abort
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user