We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2061366 commit 936e8a2Copy full SHA for 936e8a2
src/common/userspace-probe.c
@@ -32,7 +32,18 @@ lttng_userspace_probe_location_lookup_method_get_type(
32
void lttng_userspace_probe_location_lookup_method_destroy(
33
struct lttng_userspace_probe_location_lookup_method *lookup_method)
34
{
35
- free(lookup_method);
+ switch (lookup_method->type) {
36
+ case LTTNG_USERSPACE_PROBE_LOCATION_LOOKUP_METHOD_TYPE_FUNCTION_ELF:
37
+ {
38
+ struct lttng_userspace_probe_location_lookup_method_elf *elf_method =
39
+ container_of(lookup_method,
40
+ struct lttng_userspace_probe_location_lookup_method_elf, parent);
41
+ free(elf_method);
42
+ break;
43
+ }
44
+ default:
45
46
47
}
48
49
struct lttng_userspace_probe_location_lookup_method *
0 commit comments