git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8371b4
)
wbinfo: Fix a memory leak in wbinfo_ping_dc().
author
Andreas Schneider
<asn@samba.org>
Thu, 9 Jan 2014 14:12:24 +0000
(15:12 +0100)
committer
Andreas Schneider
<asn@cryptomilk.org>
Thu, 9 Jan 2014 19:42:54 +0000
(20:42 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
nsswitch/wbinfo.c
patch
|
blob
|
history
diff --git
a/nsswitch/wbinfo.c
b/nsswitch/wbinfo.c
index cc75fc30a168a177700e13ed559fe811ba736a55..bc25a1722f7ed592024e787fc396715d3a426e39 100644
(file)
--- 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);