From: Daniel KouĊ™il Date: Wed, 19 Jan 2005 14:31:53 +0000 (+0000) Subject: Removed obvious memleak X-Git-Tag: glite-lb-common_R_1_1_1~4 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=3048333ebe022a9be7fe8eebd70d6758dc6ea28e;p=jra1mw.git Removed obvious memleak --- 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