free the temporary path string if the fallback to an unversioned

plugin module fails
This commit is contained in:
drochner 2007-09-14 17:57:39 +00:00
parent 4a8ab0e43a
commit 13434589bc
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);
}