From: Mathieu Desnoyers Date: Fri, 4 Sep 2015 05:16:52 +0000 (-0400) Subject: Fix: filter validator use after free X-Git-Tag: v2.7.0-rc2~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fd93740f4670568e706d994ceeb7488a4558c6e2;p=lttng-modules.git Fix: filter validator use after free Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-filter-validator.c b/lttng-filter-validator.c index a996945d..446fc41b 100644 --- a/lttng-filter-validator.c +++ b/lttng-filter-validator.c @@ -104,8 +104,9 @@ int merge_point_add_check(struct mp_table *mp_table, unsigned long target_pc, target_pc); return -EINVAL; } + } else { + hlist_add_head(&mp_node->node, head); } - hlist_add_head(&mp_node->node, head); return 0; }