From: Volker Lendecke Date: Tue, 17 Jun 2008 11:00:13 +0000 (+0200) Subject: Fix a memleak in wbcAuthenticateUserEx() X-Git-Tag: samba-4.0.0alpha6~801^2~1027 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8349e02b0b37232341d23b7eb55bb2b7468d42db;p=thirdparty%2Fsamba.git Fix a memleak in wbcAuthenticateUserEx() (cherry picked from commit 72b381689af9cae83ab08532cffd0188f2da4807) (This used to be commit 20110ee5f181168dc1cbc08b7c22820d68204960) --- diff --git a/source3/nsswitch/libwbclient/wbc_pam.c b/source3/nsswitch/libwbclient/wbc_pam.c index c109625abf4..293f71c3479 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; }