No. 1# | By Developer Tags User at [2008-5-6] | size: 426 bytes
"Andrew" == Andrew Pinski <pinskia (AT) gmail (DOT) comwrites:
AndrewThe problem here is that empty "zip" files in the classpath
Andrewwould cause leakage of file streams which meant after a while,
Andrewwe hit the limit of opened files.
Nice catch, thanks.
AndrewK?
I think we should free 'zipf' in the 'return NULL' cases.
with that change.
Tom
No. 1# | By Developer Tags User at [2008-5-6] | size: 721 bytes
Tue, 2007-01-23 at 08:40 -0700, Tom Tromey wrote:
"Andrew" == Andrew Pinski <pinskia (AT) gmail (DOT) comwrites:
AndrewThe problem here is that empty "zip" files in the classpath
Andrewwould cause leakage of file streams which meant after a while,
Andrewwe hit the limit of opened files.
Nice catch, thanks.
AndrewK?
I think we should free 'zipf' in the 'return NULL' cases.
with that change.
And this is what I applied.
Thanks,
Andrew Pinski
2007-01-23 Andrew Pinski <pinskia (AT) gmail (DOT) com>
PR java/30454
* jcf-io.c (opendir_in_zip): Close the file
and free zipf before returning after an error.