summaryrefslogtreecommitdiff
path: root/nsswitch/libwbclient
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-04 22:26:40 +0200
committerVolker Lendecke <vl@samba.org>2010-04-04 23:22:52 +0200
commitb1b723da6f7545f387ab64eb4ad2df2cf59e2623 (patch)
tree0084a2c606de0fd78ce1d06194452ee0047ec6df /nsswitch/libwbclient
parent6e40fa9b016cdbd43c973c9b61b581258c0c24a9 (diff)
downloadsamba-b1b723da6f7545f387ab64eb4ad2df2cf59e2623.tar.gz
samba-b1b723da6f7545f387ab64eb4ad2df2cf59e2623.tar.bz2
samba-b1b723da6f7545f387ab64eb4ad2df2cf59e2623.zip
libwbclient: Fix a memleak in wbcListTrusts
Diffstat (limited to 'nsswitch/libwbclient')
-rw-r--r--nsswitch/libwbclient/wbc_util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nsswitch/libwbclient/wbc_util.c b/nsswitch/libwbclient/wbc_util.c
index 2a1285e916..2c2ae55d4c 100644
--- a/nsswitch/libwbclient/wbc_util.c
+++ b/nsswitch/libwbclient/wbc_util.c
@@ -24,6 +24,7 @@
#include "replace.h"
#include "libwbclient.h"
+#include "../winbind_client.h"
/** @brief Ping winbindd to see if the daemon is running
*
@@ -469,6 +470,8 @@ wbcErr wbcListTrusts(struct wbcDomainInfo **domains, size_t *num_domains)
*num_domains = i;
done:
+ winbindd_free_response(&response);
+
if (!WBC_ERROR_IS_OK(wbc_status)) {
if (d_list)
talloc_free(d_list);