X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Fctables.c;h=7b7a81946ca29bbec057550e06772e5c99f15c9d;hb=a7ceaee3b462109f96fad61968999e118b360b67;hp=a573afaad1ba99075265128c73a58b47fae3c557;hpb=298861c031f75037ec8d63d4d1dd39450ee574e8;p=pspp diff --git a/src/language/stats/ctables.c b/src/language/stats/ctables.c index a573afaad1..7b7a81946c 100644 --- a/src/language/stats/ctables.c +++ b/src/language/stats/ctables.c @@ -1239,7 +1239,10 @@ ctables_axis_parse_nest (struct ctables_axis_parse_ctx *ctx) { struct ctables_axis *rhs = ctables_axis_parse_postfix (ctx); if (!rhs) - return NULL; + { + ctables_axis_destroy (lhs); + return NULL; + } struct ctables_axis *nest = ctables_axis_new_nonterminal ( CTAO_NEST, lhs, rhs, ctx->lexer, start_ofs); @@ -1285,7 +1288,10 @@ ctables_axis_parse_stack (struct ctables_axis_parse_ctx *ctx) { struct ctables_axis *rhs = ctables_axis_parse_nest (ctx); if (!rhs) - return NULL; + { + ctables_axis_destroy (lhs); + return NULL; + } lhs = ctables_axis_new_nonterminal (CTAO_STACK, lhs, rhs, ctx->lexer, start_ofs);