diff options
author | Andreas Schneider <asn@samba.org> | 2014-01-09 15:12:24 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2014-01-13 10:19:12 +0100 |
commit | bf889595459658824478d5538518f5ca72e5f327 (patch) | |
tree | 85e38bb11fe315dfc9ddde54869a4fd08aede48f /nsswitch | |
parent | 07f131274b706420f8b4a71029a94b9001e57323 (diff) | |
download | samba-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.c | 1 |
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); |