summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-09-06 12:31:50 -0400
committerSimo Sorce <idra@samba.org>2008-09-06 12:33:27 -0400
commit40b71bbd718f6dee70c0611e527f55c56623dea6 (patch)
tree2a2b5a901f82cc2f78bff41469fa976ce9faeab9 /source
parent3f4eb091f0dcc53acbfdc63a8d82a5a0f28954a6 (diff)
downloadsamba-40b71bbd718f6dee70c0611e527f55c56623dea6.tar.gz
Always free tmp contexts before returning
Diffstat (limited to 'source')
-rw-r--r--source/lib/ldb/common/ldb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/lib/ldb/common/ldb.c b/source/lib/ldb/common/ldb.c
index ce4796dee2b..9e04cc78450 100644
--- a/source/lib/ldb/common/ldb.c
+++ b/source/lib/ldb/common/ldb.c
@@ -97,6 +97,7 @@ void ldb_set_default_dns(struct ldb_context *ldb)
if (res->count != 1) {
talloc_free(res);
+ talloc_free(tmp_ctx);
return;
}