summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/db/sysdb.c2
1 files changed, 1 insertions, 1 deletions
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;
}