From: Jérémie Galarneau Date: Mon, 27 Aug 2018 20:30:50 +0000 (-0400) Subject: Fix: abort on unknown location type in destructor X-Git-Tag: v2.11.0-rc1~58 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=adf53c6784b300427bb9fbff461fa88c897b9185;p=lttng-tools.git Fix: abort on unknown location type in destructor Signed-off-by: Jérémie Galarneau --- 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(); } }