From fe77e8d366f311e47e1597d0e99bc2cafb6fc5ab Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Wed, 4 Apr 2007 17:53:18 +0000 Subject: [PATCH] Leak fixes. Valgrind likes it now. --- org.glite.security.gsoap-plugin/src/glite_gsplugin.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/org.glite.security.gsoap-plugin/src/glite_gsplugin.c b/org.glite.security.gsoap-plugin/src/glite_gsplugin.c index c7cc361..4504d5d 100644 --- a/org.glite.security.gsoap-plugin/src/glite_gsplugin.c +++ b/org.glite.security.gsoap-plugin/src/glite_gsplugin.c @@ -158,6 +158,7 @@ glite_gsplugin(struct soap *soap, struct soap_plugin *p, void *arg) } pdprintf(("GSLITE_GSPLUGIN: server running with certificate: %s\n", subject)); free(subject); + pdata->def = 1; } p->id = plugin_id; @@ -210,9 +211,7 @@ glite_gsplugin_delete(struct soap *soap, struct soap_plugin *p) OM_uint32 ms; glite_gsplugin_close(soap); - if (d->ctx->cred != GSS_C_NO_CREDENTIAL) gss_release_cred(&ms, &d->ctx->cred); - free(d->ctx->error_msg); - d->ctx->error_msg = NULL; + glite_gsplugin_free_context(d->ctx); } free(d); } -- 1.8.2.3