diff options
Diffstat (limited to 'src/parserfunc.c')
-rw-r--r-- | src/parserfunc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parserfunc.c b/src/parserfunc.c index edd34f6..f35e6c5 100644 --- a/src/parserfunc.c +++ b/src/parserfunc.c @@ -866,7 +866,8 @@ pf_do_not(ParseNode* self) { set_error(self->state, PARSER_ERR_OVERFLOW, NULL); free(ans); - ans = NULL; + free(val); + return NULL; } mp_not(val, self->state->options->wordlen, ans); free(val); |