]> jfr.im git - irc/quakenet/newserv.git/blobdiff - patriciasearch/ps-nick.c
TRUSTS: use correct socket opt...
[irc/quakenet/newserv.git] / patriciasearch / ps-nick.c
index 551bd0a77eddc3c49874738cde34746f316df8cf..8ffcbecf796994d575bd46861e37c665d275124f 100644 (file)
@@ -32,6 +32,7 @@ struct searchNode *ps_nick_parse(searchCtx *ctx, int argc, char **argv) {
 
   if (!(thenode=(struct searchNode *)malloc(sizeof (struct searchNode)))) {
     parseError = "malloc: could not allocate memory for this search.";
+    free(localdata);
     return NULL;
   }
 
@@ -48,7 +49,6 @@ void *ps_nick_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput) {
   patricia_node_t *node;
   nick *np;
   patricianick_t *pnp;
-  patricia_node_t *pn;
   int i;
 
   localdata = thenode->localdata;