Fix: abort on unknown location type in destructor
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 27 Aug 2018 20:30:50 +0000 (16:30 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 27 Aug 2018 20:30:50 +0000 (16:30 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/userspace-probe.c

index ac26a0c47411790b2a130067bcfe4821c1c73a1a..37bdcc7b1b7897ac3ef588b4839744995dd17591 100644 (file)
@@ -150,7 +150,7 @@ void lttng_userspace_probe_location_destroy(
                lttng_userspace_probe_location_tracepoint_destroy(location);
                break;
        default:
                lttng_userspace_probe_location_tracepoint_destroy(location);
                break;
        default:
-               free(location);
+               abort();
        }
 }
 
        }
 }
 
This page took 0.026595 seconds and 4 git commands to generate.