]> jfr.im git - irc/quakenet/newserv.git/blobdiff - patriciasearch/ps-nick.c
CHANSERV: add missing error statements.
[irc/quakenet/newserv.git] / patriciasearch / ps-nick.c
index c18787d68dbdd40464d407558dceb5f81b7c47e1..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;
   }