missing call to fclose

Carter Bullard carter at qosient.com
Mon Oct 19 14:44:26 EDT 2009


Gentle people,
Thanks for the bug report.  The fix has been added to the argus-3.0.2  
codeset
that will be 'released' very soon.  A copy is currently available at
http://qosient.com/argus.

Thanks again!!!

Carter

On Oct 19, 2009, at 10:25 AM, Michal Seben wrote:

> We've received the following report from a reporter:
> https://bugzilla.novell.com/show_bug.cgi?id=542802
>
> ----------------------
> source code file argus-3.0.0/argus/argus.c
> function ArgusParseResourceFile.
>
> I notice the following code
>
>     if ((fd = fopen (file, "r")) != NULL) {
>
> but I fail to notice a matching call to fclose.  This looks like a
> resource leak to me. Suggest fclose the file near the end of the  
> function.
> ----------------------
>
> thanks
>
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3815 bytes
Desc: not available
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20091019/39b29c29/attachment.bin>


More information about the argus mailing list