free the temporary path string if the fallback to an unversioned
plugin module fails
This commit is contained in:
parent
4a8ab0e43a
commit
13434589bc
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue