Memory leak on ngx_http_auth_pam_module

Sergio Talens-Oliag sto at
Tue Nov 16 16:58:41 MSK 2010

This weekend Neil Chintomby <nchintomby at> reported me a bug on the
ngx_http_auth_pam_module; the problem was that the current code was not
calling pam_end() when there was an authentication failure, returning without
freeing the memory allocated by the pam transaction operations.

The updated code is available on:

Users of the module should upgrade if they want to avoid the memory leak.


Sergio Talens-Oliag <sto at>       <>
Key fingerprint = FF77 A16B 9D09 FC7B 6656 CFAD 261D E19A 578A 36F2

More information about the nginx mailing list