Re: Open files leakage



[ I copied this from the ML-archive; my copy vanished, probably a bug in
  my delete-ML-CCs script. ]

> I found and fixed this bug.
> Patch attached and commited to CVS tree.
>
> --- src/view.c  Tue Mar 19 08:08:38 2002
> +++ src/view.c  Wed May 15 17:44:12 2002
> @@ -569,9 +569,11 @@ do_view_init (WView *view, char *_comman
>         }
>       }
>
> -    if (_command && (view->viewer_magic_flag || _file[0] == '\0'))
> +    if (_command && (view->viewer_magic_flag || _file[0] == '\0')) {
>         error = init_growing_view (view, _command, view->filename);
> -    else
> + 
> if (fd != -1)
> + 
>      mc_close (fd);
> +    } else
>         error = load_view_file (view, fd);
>
>   finish:

 Looks good Andrew. I wonder how long before your commit shows up on my
end... It still doesn't show up when I cvs-up.


-- 
//Björnen, bjorn @ bjornen . nu | http://bjornen.nu | |_).._. _ _  _ _ \\
( GPG: 3F1E41C8 5229D5F6 5D8E0149 659CDF06 8320510D | |_)|(_)| | )(-| ) )
\\            Mutt + Vim + Exim + Linux             |   /              //

Attachment: pgpnMVKq5ptKb.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]