[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Fix Win32 file handle leak in translate-test.exe?

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-12-17 23:25:14 CET

Greg Hudson wrote:

>Can you better explain how translate-test was failing? Were we running
>the translate command in a loop without cleaning a pool?
>
>I continue to believe that it's appropriate to rely on pool cleanups for
>files as well as memory. It may take a smaller loop without pool
>cleanup to notice a resource problem with open files, but it's a bug
>either way.
>
>
The problem is that the bug was _within_ the function itself, regardless
of pool cleanup -- in the case of an error, it attempted to remove the
temporary file even though it had not been closed first. That has
nothing to do with the concept of pool cleanup for closing files.

My patch fixes this bug by using pool cleanup to make sure the files get
closed.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 17 23:27:49 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.