]> git.samba.org - abartlet/samba.git/.git/commitdiff
Fix a memleak in wbcAuthenticateUserEx()
authorVolker Lendecke <vl@samba.org>
Tue, 17 Jun 2008 11:00:13 +0000 (13:00 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 17 Jun 2008 11:10:18 +0000 (13:10 +0200)
(cherry picked from commit 72b381689af9cae83ab08532cffd0188f2da4807)
(This used to be commit 20110ee5f181168dc1cbc08b7c22820d68204960)

source3/nsswitch/libwbclient/wbc_pam.c

index c109625abf404ffa441426b686662cf8a1cfe017..293f71c34796e8640398dd9ca22e3138279338ea 100644 (file)
@@ -416,6 +416,8 @@ wbcErr wbcAuthenticateUserEx(const struct wbcAuthUserParams *params,
        }
 
 done:
+       if (response.extra_data.data)
+               free(response.extra_data.data);
 
        return wbc_status;
 }