Always free tmp contexts before returning
authorSimo Sorce <idra@samba.org>
Sat, 6 Sep 2008 16:31:50 +0000 (12:31 -0400)
committerSimo Sorce <idra@samba.org>
Sat, 6 Sep 2008 16:33:27 +0000 (12:33 -0400)
source/lib/ldb/common/ldb.c

index ce4796dee2b02d8659ee3fe61aad175b93eb2152..9e04cc78450275bdcffb6ff9242ba19c436d31be 100644 (file)
@@ -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;
        }