From: Mathieu Desnoyers Date: Fri, 14 Jun 2013 20:34:56 +0000 (-0400) Subject: Fix: memleak in liblttng-ctl visit_node_load() X-Git-Tag: v2.2.0-rc3~21 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3a68137cb2a86e7e8b13239fee52cae4542605af;p=lttng-tools.git Fix: memleak in liblttng-ctl visit_node_load() Signed-off-by: Mathieu Desnoyers Signed-off-by: David Goulet --- diff --git a/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c b/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c index 785c1135e..762d60464 100644 --- a/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c +++ b/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c @@ -263,6 +263,7 @@ int visit_node_load(struct filter_parser_ctx *ctx, struct ir_op *node) insn->op = FILTER_OP_GET_CONTEXT_REF; break; default: + free(insn); return -EINVAL; } ref_offset.offset = (uint16_t) -1U;