From 8349e02b0b37232341d23b7eb55bb2b7468d42db Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 17 Jun 2008 13:00:13 +0200 Subject: Fix a memleak in wbcAuthenticateUserEx() (cherry picked from commit 72b381689af9cae83ab08532cffd0188f2da4807) (This used to be commit 20110ee5f181168dc1cbc08b7c22820d68204960) --- source3/nsswitch/libwbclient/wbc_pam.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/libwbclient/wbc_pam.c b/source3/nsswitch/libwbclient/wbc_pam.c index c109625abf..293f71c347 100644 --- a/source3/nsswitch/libwbclient/wbc_pam.c +++ b/source3/nsswitch/libwbclient/wbc_pam.c @@ -416,6 +416,8 @@ wbcErr wbcAuthenticateUserEx(const struct wbcAuthUserParams *params, } done: + if (response.extra_data.data) + free(response.extra_data.data); return wbc_status; } -- cgit