From a073113c08f3f03934c7af7bb6b706bb5d48aa9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 18 Jun 2007 21:02:23 +0000 Subject: [PATCH] Don't expose free pointer. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21134 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/plugin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/krb5/plugin.c b/lib/krb5/plugin.c index 49efc9c3d..5b5da0bb3 100644 --- a/lib/krb5/plugin.c +++ b/lib/krb5/plugin.c @@ -96,6 +96,7 @@ loadlib(krb5_context context, (*e)->dsohandle = dlopen(lib, RTLD_LAZY); if ((*e)->dsohandle == NULL) { free(*e); + *e = NULL; krb5_set_error_string(context, "Failed to load %s: %s", lib, dlerror()); return ENOMEM;