Removed obvious memleak
authorDaniel Kouřil <kouril@ics.muni.cz>
Wed, 19 Jan 2005 14:31:53 +0000 (14:31 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Wed, 19 Jan 2005 14:31:53 +0000 (14:31 +0000)
org.glite.lb.common/src/lb_gss.c

index a9de75f..58822e0 100644 (file)
@@ -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