git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07f1312
)
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
Karolin Seeger
<kseeger@samba.org>
Mon, 13 Jan 2014 09:19:12 +0000
(10:19 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
(cherry picked from commit
541164d47a86bab90ef96a9be40b8c0997abdd61
)
nsswitch/wbinfo.c
patch
|
blob
|
history
diff --git
a/nsswitch/wbinfo.c
b/nsswitch/wbinfo.c
index 3f0310a44b1aa1dd612b6a7d42cdd1a3d1092719..0a5ec40c2cdcf3309f06869795b0ef5c8b404d62 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);