X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Funit%2Ftest_ust_data.c;h=2acf3d906f182fa02027e5be12c037bb8656963e;hp=2d31aa4b0d4a41f3c73ca7f13a708a0e01800400;hb=e196f4f4b3525e73313529bd34b08d5da408923f;hpb=9abb7e4a8758e6894872d81aef285aa2b521318a diff --git a/tests/unit/test_ust_data.c b/tests/unit/test_ust_data.c index 2d31aa4b0..2acf3d906 100644 --- a/tests/unit/test_ust_data.c +++ b/tests/unit/test_ust_data.c @@ -184,7 +184,7 @@ static void test_create_ust_event_exclusion(void) struct lttng_event ev; char *name; char *random_name; - struct lttng_event_exclusion *exclusion; + struct lttng_event_exclusion *exclusion = NULL; struct lttng_event_exclusion *exclusion_copy = NULL; const int exclusion_count = 2; @@ -254,6 +254,7 @@ static void test_create_ust_event_exclusion(void) LTTNG_EVENT_EXCLUSION_NAME_AT(exclusion, 1), LTTNG_SYMBOL_NAME_LEN); ret = trace_ust_create_event(&ev, NULL, NULL, exclusion, false, &event); + exclusion = NULL; ok(ret == LTTNG_OK, "Create UST event with different exclusion names"); if (!event) { @@ -273,6 +274,7 @@ static void test_create_ust_event_exclusion(void) trace_ust_destroy_event(event); end: + free(exclusion); free(exclusion_copy); return; }