diff options
Diffstat (limited to 'contrib/openpam/lib/openpam_dynamic.c')
-rw-r--r-- | contrib/openpam/lib/openpam_dynamic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/openpam/lib/openpam_dynamic.c b/contrib/openpam/lib/openpam_dynamic.c index 2e062fb735fb8..084408ec1edea 100644 --- a/contrib/openpam/lib/openpam_dynamic.c +++ b/contrib/openpam/lib/openpam_dynamic.c @@ -1,5 +1,6 @@ /*- * Copyright (c) 2002-2003 Networks Associates Technology, Inc. + * Copyright (c) 2004-2007 Dag-Erling Smørgrav * All rights reserved. * * This software was developed for the FreeBSD Project by ThinkSec AS and @@ -31,7 +32,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/openpam/lib/openpam_dynamic.c#14 $ + * $Id: openpam_dynamic.c 408 2007-12-21 11:36:24Z des $ */ #include <dlfcn.h> @@ -80,6 +81,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); } |