mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
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>
This commit is contained in:
parent
c8371b4ec1
commit
541164d47a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user