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:09:17 +0000 (13:09 +0200)
source/nsswitch/libwbclient/wbc_pam.c

index 3e0b6a5a0a2d8cb1d2c80dee6e895d5737389c03..5427ddb46a1c79a86de04e54ff80784e6904300f 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;
 }