|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-1676581 ] file handle leak in the main tool
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Fri, 09 Mar 2007 13:51:47 -0800
Bugs item #1676581, was opened at 2007-03-08 16:06
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
Currently:
if (!infd || stat(uploadfile, &fileinfo)) {
This should have the following inserted before the return in order to prevent a file handle leak :
if (infd)
In the case where the file has been opened, but cannot be stat'd, the file handle would have been leaked because the routine had returned without infd being closed, or infdfopen being set to TRUE.
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Message:
Thanks, applied just now!
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info