Commit d0626820 authored by Christian Kellner's avatar Christian Kellner

test: exported: free the CallCtx struct

In call_ctx_free, all the resources associated with the CallCtx
were freed, but not the struct itself, which also was dynamically

Direct leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7f3b56061a50 in __interceptor_calloc (/lib64/
    #1 0x7f3b55ea6ffd in g_malloc0 (/lib64/
    #2 0x409a95 in test_exported_props ../tests/test-exported.c:806
    #3 0x7f3b55ec91a9  (/lib64/
parent a0324c82
......@@ -604,15 +604,17 @@ call_ctx_reset (CallCtx *ctx)
if (ctx->data)
g_variant_unref (ctx->data);
if (ctx->error)
g_clear_error (&ctx->error);
g_clear_error (&ctx->error);
static void
call_ctx_free (CallCtx *ctx)
g_return_if_fail (ctx != NULL);
g_main_loop_unref (ctx->loop);
call_ctx_reset (ctx);
g_free (ctx);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (CallCtx, call_ctx_free);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment