Fix: memory leak in UST unit test
authorDavid Goulet <dgoulet@efficios.com>
Tue, 14 May 2013 16:38:10 +0000 (12:38 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Wed, 15 May 2013 14:21:07 +0000 (10:21 -0400)
Issue 1019913 of coverity scan.

Signed-off-by: David Goulet <dgoulet@efficios.com>
tests/unit/test_ust_data.c

index 4b9ac64b3d47cae1fe72bdd56a79e21ccf12ec22..ae8b1232a02a1b3f0f9a2095f2741c99b975fb10 100644 (file)
@@ -176,6 +176,7 @@ static void test_create_ust_context(void)
 
        ok((int) uctx->ctx.ctx == LTTNG_UST_CONTEXT_VTID,
           "Validate UST context");
+       free(uctx);
 }
 
 int main(int argc, char **argv)
This page took 0.02541 seconds and 4 git commands to generate.