diff options
Diffstat (limited to 'main/ast_expr2.y')
-rw-r--r-- | main/ast_expr2.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/ast_expr2.y b/main/ast_expr2.y index 29fee35cf..8b32b2b9c 100644 --- a/main/ast_expr2.y +++ b/main/ast_expr2.y @@ -1666,6 +1666,8 @@ op_tildetilde (struct val *a, struct val *b) vs = malloc(strlen(a->u.s)+strlen(b->u.s)+1); if (vs == NULL) { ast_log(LOG_WARNING, "malloc() failed\n"); + free_value(a); + free_value(b); return NULL; } |