summaryrefslogtreecommitdiffstats
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-06-17 13:00:13 +0200
committerVolker Lendecke <vl@samba.org>2008-06-17 13:10:18 +0200
commit8349e02b0b37232341d23b7eb55bb2b7468d42db (patch)
tree9578f09d33048da02df13f34307fbc4e32038a29 /source3/nsswitch
parentee281b747906bab75b766243dac6b0442f81517d (diff)
downloadsamba-8349e02b0b37232341d23b7eb55bb2b7468d42db.tar.gz
samba-8349e02b0b37232341d23b7eb55bb2b7468d42db.tar.xz
samba-8349e02b0b37232341d23b7eb55bb2b7468d42db.zip
Fix a memleak in wbcAuthenticateUserEx()
(cherry picked from commit 72b381689af9cae83ab08532cffd0188f2da4807) (This used to be commit 20110ee5f181168dc1cbc08b7c22820d68204960)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/libwbclient/wbc_pam.c2
1 files changed, 2 insertions, 0 deletions
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;
}