From cfebf2a690e1a0ad2255f64eec5bec43eeac0049 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Jul 2026 21:54:50 +0800 Subject: fix mem leaks --- core/src/xmake/binutils/coff/bin2coff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/src/xmake/binutils/coff') diff --git a/core/src/xmake/binutils/coff/bin2coff.c b/core/src/xmake/binutils/coff/bin2coff.c index ceb984a5c..791d4e2ba 100644 --- a/core/src/xmake/binutils/coff/bin2coff.c +++ b/core/src/xmake/binutils/coff/bin2coff.c @@ -303,12 +303,12 @@ tb_int_t xm_binutils_bin2coff(lua_State *lua) { } while (0); if (istream) { - tb_stream_clos(istream); + tb_stream_exit(istream); } istream = tb_null; if (ostream) { - tb_stream_clos(ostream); + tb_stream_exit(ostream); } ostream = tb_null; -- cgit v1.3.1