From 13434589bc5d01231b9fcdefecca9b3054ba3227 Mon Sep 17 00:00:00 2001 From: drochner Date: Fri, 14 Sep 2007 17:57:39 +0000 Subject: [PATCH] free the temporary path string if the fallback to an unversioned plugin module fails --- dist/openpam/lib/openpam_dynamic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/openpam/lib/openpam_dynamic.c b/dist/openpam/lib/openpam_dynamic.c index cbbc71ae3c37..05f4e91b9303 100644 --- a/dist/openpam/lib/openpam_dynamic.c +++ b/dist/openpam/lib/openpam_dynamic.c @@ -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); }