mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 12:00:03 -05:00
2003-07-01 Michael Koch <konqueror@gmx.de>
* gnu/gcj/convert/natIconv.cc (iconv_init): Fixed possible memory leak by releasing allocated iconv handle. From-SVN: r68774
This commit is contained in:
committed by
Michael Koch
parent
c0cbdbd97d
commit
3d8daef2cd
@@ -268,6 +268,9 @@ gnu::gcj::convert::IOConverter::iconv_init (void)
|
||||
// Conversion must be complete for us to use the result.
|
||||
if (r != (size_t) -1 && inc == 0 && outc == 0)
|
||||
result = (c != 0xfeff);
|
||||
|
||||
// Release iconv handle.
|
||||
iconv_close (handle);
|
||||
}
|
||||
#endif /* HAVE_ICONV */
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user