From b1b723da6f7545f387ab64eb4ad2df2cf59e2623 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 4 Apr 2010 22:26:40 +0200 Subject: libwbclient: Fix a memleak in wbcListTrusts --- nsswitch/libwbclient/wbc_util.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nsswitch') 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); -- cgit