Open files leakage
Björn Eriksson
bjorn at bjornen.nu
Wed May 15 16:15:53 UTC 2002
[ 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 | / //
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20020515/dd1bf144/attachment.asc>
More information about the mc-devel
mailing list