From: Paul Date: Wed, 29 Oct 2008 22:07:44 +0000 (+0000) Subject: we can just call deref here X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/609fa18c1b7eddd66cebca2ca8272ac020ac315b we can just call deref here --HG-- branch : paul --- diff --git a/patricia/patricia.c b/patricia/patricia.c index 2f0e510d..7928c782 100644 --- a/patricia/patricia.c +++ b/patricia/patricia.c @@ -124,15 +124,9 @@ void releasenodeext(int index) { PATRICIA_WALK_CLEAR(head, node) { if ( node->exts[index] ) { - if (node->prefix) { - if (node->prefix->ref_count == 1) { - patricia_remove(iptree, node); - } else { - patricia_deref_prefix(node->prefix); - } - } + derefnode(iptree,node); + node->exts[index]=NULL; } - node->exts[index]=NULL; } PATRICIA_WALK_CLEAR_END; }