From 3048333ebe022a9be7fe8eebd70d6758dc6ea28e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kou=C5=99il?= Date: Wed, 19 Jan 2005 14:31:53 +0000 Subject: [PATCH] Removed obvious memleak --- org.glite.lb.common/src/lb_gss.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.glite.lb.common/src/lb_gss.c b/org.glite.lb.common/src/lb_gss.c index a9de75f..58822e0 100644 --- a/org.glite.lb.common/src/lb_gss.c +++ b/org.glite.lb.common/src/lb_gss.c @@ -826,7 +826,10 @@ edg_wll_gss_read(edg_wll_GssConnection *connection, void *buf, size_t bufsize, } memcpy(buf, output_token.value, output_token.length); - return output_token.length; + ret = output_token.length; + gss_release_cred(&min_stat, &output_token); + + return ret; } int -- 1.8.2.3