Memory leak fixed.
authorJiří Filipovič <fila@ics.muni.cz>
Mon, 2 Jun 2008 10:38:29 +0000 (10:38 +0000)
committerJiří Filipovič <fila@ics.muni.cz>
Mon, 2 Jun 2008 10:38:29 +0000 (10:38 +0000)
org.glite.jp.primary/src/new_ftp_backend.c
org.glite.security.gss/src/glite_gss.c

index 694cf0f..4c33dea 100644 (file)
@@ -1094,6 +1094,7 @@ int glite_jppsbe_close_file(
 
 error_out:
        free(((fhandle)handle)->filedata);
+       free(((fhandle)handle)->filename);
        free(handle); handle=NULL;
        if (err.code) {
                return glite_jp_stack_error(ctx,&err);
index f325c14..faf16d3 100644 (file)
@@ -798,6 +798,9 @@ edg_wll_gss_accept(edg_wll_GssCred cred, int sock, struct timeval *timeout,
       if (ret)
         goto end;
 
+      if (client_name != GSS_C_NO_NAME)
+        gss_release_name(&min_stat2, &client_name);
+
       maj_stat = gss_accept_sec_context(&min_stat, &context,
                                        cred->gss_cred, &input_token,
                                        GSS_C_NO_CHANNEL_BINDINGS,