From: Mathieu Desnoyers Date: Fri, 4 Sep 2015 05:16:52 +0000 (-0400) Subject: Fix: filter validator use after free X-Git-Tag: v2.8.0-rc1~81 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5e13eb3cd47abc717bb2e02dce5d26dc94281134;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; }