summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);