Re: icon loading can leak filedescriptors

From: Adrian Chadd <adrian@dont-contact.us>
Date: Wed, 13 Jun 2001 05:14:13 +0800

On Wed, Jun 13, 2001, Adrian Chadd wrote:
>
>
> Whilst playing with the icon loading code, I've found a
> very subtle bug.
>
> in mimeLoadIconFile(), if the fstat() fails the routine returns
> without calling file_close(), leaking a filedescriptor.
>
> I'm not going to bother patching it - I'll fix it in my diskio code.

.. and strangely enough, this appears in the net_db.c code
as well.

Adrian

-- 
Adrian Chadd			<Liedra> Don't worry, I know who *you* are ;)
<adrian@creative.net.au> 	<spiv> We know everything about you.
Received on Tue Jun 12 2001 - 15:14:17 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:03 MST