summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-08-08 15:21:33 -0700
committerJeremy Allison <jra@samba.org>2012-08-09 09:47:35 -0700
commite1ec86a49ce1d7c3ebe99fc175ffad70a03c4a0b (patch)
tree9f36985e5e2e70f36818b908588c2ed9e842a86f
parent9fcc6f27fb2cf8cf5c30b701cb6788fc8f70cf82 (diff)
downloadsamba-e1ec86a49ce1d7c3ebe99fc175ffad70a03c4a0b.tar.gz
samba-e1ec86a49ce1d7c3ebe99fc175ffad70a03c4a0b.tar.bz2
samba-e1ec86a49ce1d7c3ebe99fc175ffad70a03c4a0b.zip
Fix missing ads_destroy in error path.
-rw-r--r--source3/libsmb/namequery_dc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/namequery_dc.c b/source3/libsmb/namequery_dc.c
index d4e68cb00c..f4c2fc1929 100644
--- a/source3/libsmb/namequery_dc.c
+++ b/source3/libsmb/namequery_dc.c
@@ -130,6 +130,7 @@ static bool ads_dc_name(const char *domain,
DEBUG(1,("ads_dc_name: sitename (now \"%s\") keeps changing ???\n",
sitename ? sitename : ""));
SAFE_FREE(sitename);
+ ads_destroy(&ads);
return False;
}