From 45e673848e528a1447d00ced6019e16e69acb5de Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 9 Aug 2011 08:58:34 -0400 Subject: Fix potential double-free issue tmp_ctx is a child of ctx. --- src/db/sysdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db/sysdb.c') diff --git a/src/db/sysdb.c b/src/db/sysdb.c index a9e6975c9..1051e5a43 100644 --- a/src/db/sysdb.c +++ b/src/db/sysdb.c @@ -1920,12 +1920,12 @@ static int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx, } done: + talloc_free(tmp_ctx); if (ret == EOK) { *_ctx = ctx; } else { talloc_free(ctx); } - talloc_free(tmp_ctx); return ret; } -- cgit