summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-08-09 08:58:34 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-08-10 14:05:48 -0400
commit45e673848e528a1447d00ced6019e16e69acb5de (patch)
tree9fb8e8e1326d8b4a7c57f3eb03826c38b98c0279 /src/db
parent7e39ef3f052c5d5394b515fd5dd660e11d5baa7e (diff)
downloadsssd-45e673848e528a1447d00ced6019e16e69acb5de.tar.gz
sssd-45e673848e528a1447d00ced6019e16e69acb5de.tar.xz
sssd-45e673848e528a1447d00ced6019e16e69acb5de.zip
Fix potential double-free issue
tmp_ctx is a child of ctx.
Diffstat (limited to 'src/db')
-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;
}