X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/1bb4c08e90274c34eb03720fb0eda246e2dc0c86..8c684fca9c7dbb4a2601628c744be9236ee68641:/patricia/patricia.c diff --git a/patricia/patricia.c b/patricia/patricia.c index 049f993a..7928c782 100644 --- a/patricia/patricia.c +++ b/patricia/patricia.c @@ -121,9 +121,12 @@ void releasenodeext(int index) { head = iptree->head; - PATRICIA_WALK_ALL(head, node) + PATRICIA_WALK_CLEAR(head, node) { + if ( node->exts[index] ) { + derefnode(iptree,node); node->exts[index]=NULL; - } PATRICIA_WALK_END; + } + } PATRICIA_WALK_CLEAR_END; }