diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-08-09 08:58:34 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-08-10 14:05:48 -0400 |
commit | 45e673848e528a1447d00ced6019e16e69acb5de (patch) | |
tree | 9fb8e8e1326d8b4a7c57f3eb03826c38b98c0279 /src/db | |
parent | 7e39ef3f052c5d5394b515fd5dd660e11d5baa7e (diff) | |
download | sssd-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.c | 2 |
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; } |