summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-01-09 15:12:24 +0100
committerKarolin Seeger <kseeger@samba.org>2014-01-13 10:19:12 +0100
commitbf889595459658824478d5538518f5ca72e5f327 (patch)
tree85e38bb11fe315dfc9ddde54869a4fd08aede48f /nsswitch
parent07f131274b706420f8b4a71029a94b9001e57323 (diff)
downloadsamba-bf889595459658824478d5538518f5ca72e5f327.tar.gz
wbinfo: Fix a memory leak in wbinfo_ping_dc().
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> (cherry picked from commit 541164d47a86bab90ef96a9be40b8c0997abdd61)
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/wbinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c
index 3f0310a44b..0a5ec40c2c 100644
--- a/nsswitch/wbinfo.c
+++ b/nsswitch/wbinfo.c
@@ -838,6 +838,7 @@ static bool wbinfo_ping_dc(void)
dcname ? dcname : "",
WBC_ERROR_IS_OK(wbc_status) ? "succeeded" : "failed");
+ wbcFreeMemory(dcname);
if (wbc_status == WBC_ERR_AUTH_ERROR) {
d_fprintf(stderr, "error code was %s (0x%x)\n",
error->nt_string, error->nt_status);