heimdal kerberos - fix memory leak (free the plugin list always - not only in error...
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Sat, 3 Oct 2009 13:36:44 +0000 (15:36 +0200)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Sat, 3 Oct 2009 13:49:40 +0000 (15:49 +0200)
source4/heimdal/kdc/windc.c

index 9d7fa52ceab498c9635f4873e5b06bec26d3a764..ab844e346cf53fc6d7afe3bab7f146c5c37d6faf 100644 (file)
@@ -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;