Plug memory leak.

git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@383 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2006-03-19 19:55:17 +00:00
parent 2e1db320ba
commit b158155823
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ openpam_dynamic(const char *path)
*strrchr(vpath, '.') = '\0';
if ((dlh = dlopen(vpath, RTLD_NOW)) == NULL) {
openpam_log(PAM_LOG_DEBUG, "%s: %s", vpath, dlerror());
FREE(vpath);
FREE(module);
return (NULL);
}