diff options
author | Andreas Schneider <asn@samba.org> | 2014-01-09 15:12:24 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-01-09 20:42:54 +0100 |
commit | 541164d47a86bab90ef96a9be40b8c0997abdd61 (patch) | |
tree | ceb97bc626eff523a1f908d59880d23d7c7e0f6d /nsswitch | |
parent | c8371b4ec12f2dea6ce18724de59a23e04826c1d (diff) | |
download | samba-541164d47a86bab90ef96a9be40b8c0997abdd61.tar.gz samba-541164d47a86bab90ef96a9be40b8c0997abdd61.tar.xz samba-541164d47a86bab90ef96a9be40b8c0997abdd61.zip |
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>
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 cc75fc30a16..bc25a1722f7 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); |