chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH] proposed bugfix for #706


From: Christian Kellermann
Subject: Re: [Chicken-hackers] [PATCH] proposed bugfix for #706
Date: Wed, 28 Sep 2011 22:10:14 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

* Alan Post <address@hidden> [110928 19:32]:
> I can't see buffer2 being deallocated.  Is there a free() missing
> here?

Thanks Alan, I have missed this indeed. As this is only for the
situations where the name of the file exceeds our famous buffer,
this would just have sometimes leaked memory, hence we also only
free it if buffer2 differs from buffer after that part. Does this
make sense?

Also can someone confirm that access is part of the POSIX standard
that windows supports? Mr. Cowan maybe?

Please find the updated patch attached.

Thank you!

Christian

-- 
Who can (make) the muddy water (clear)? Let it be still, and it will
gradually become clear. Who can secure the condition of rest? Let
movement go on, and the condition of rest will gradually arise.
 -- Lao Tse. 

Attachment: 0001-Replace-sys-file-info-with-sys-file-exists-in-file-e.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]