X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/3ab4edabaa806b55ceffcf75a955ae7f578a2e13..8855bb48b449ed06cfd3ce528b3c0a77c37cb24b:/newsearch/ns-not.c?ds=sidebyside diff --git a/newsearch/ns-not.c b/newsearch/ns-not.c index 0387f355..0e8f97a7 100644 --- a/newsearch/ns-not.c +++ b/newsearch/ns-not.c @@ -37,7 +37,11 @@ struct searchNode *not_parse(searchCtx *ctx, int argc, char **argv) { /* Our subnode needs to return a BOOL */ subnode=coerceNode(ctx, subnode, RETURNTYPE_BOOL); - + if(!subnode) { + free(thenode); + return NULL; + } + thenode->localdata=(void *)subnode; return thenode;