From adf53c6784b300427bb9fbff461fa88c897b9185 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 27 Aug 2018 16:30:50 -0400 Subject: [PATCH] Fix: abort on unknown location type in destructor MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- src/common/userspace-probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/userspace-probe.c b/src/common/userspace-probe.c index ac26a0c47..37bdcc7b1 100644 --- a/src/common/userspace-probe.c +++ b/src/common/userspace-probe.c @@ -150,7 +150,7 @@ void lttng_userspace_probe_location_destroy( lttng_userspace_probe_location_tracepoint_destroy(location); break; default: - free(location); + abort(); } } -- 2.34.1