summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-03 15:36:44 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-03 15:49:40 +0200
commit339325792023c0f486c11c5967faeea50ca20945 (patch)
treea87ef23d714ba7c03ae377e40c5439adf1448e28
parent24422fae24744f9c9113342692db285ba1409799 (diff)
downloadsamba-339325792023c0f486c11c5967faeea50ca20945.tar.gz
samba-339325792023c0f486c11c5967faeea50ca20945.tar.bz2
samba-339325792023c0f486c11c5967faeea50ca20945.zip
heimdal kerberos - fix memory leak (free the plugin list always - not only in error cases)
-rw-r--r--source4/heimdal/kdc/windc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/heimdal/kdc/windc.c b/source4/heimdal/kdc/windc.c
index 9d7fa52cea..ab844e346c 100644
--- a/source4/heimdal/kdc/windc.c
+++ b/source4/heimdal/kdc/windc.c
@@ -61,8 +61,8 @@ krb5_kdc_windc_init(krb5_context context)
(*windcft->init)(context, &windcctx);
break;
}
+ _krb5_plugin_free(list);
if (e == NULL) {
- _krb5_plugin_free(list);
krb5_set_error_message(context, ENOENT, "Did not find any WINDC plugin");
windcft = NULL;
return ENOENT;