diff options
| author | ruki <[email protected]> | 2026-07-18 21:54:50 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-07-18 21:54:50 +0800 |
| commit | cfebf2a690e1a0ad2255f64eec5bec43eeac0049 (patch) | |
| tree | 5659e0542966061f573bf5d948a664ec7605fa73 /core/src/xmake/binutils/readsyms.c | |
| parent | 0641a99d357d99e96da49c22cb7d52be5f81c83f (diff) | |
fix mem leaks
Diffstat (limited to 'core/src/xmake/binutils/readsyms.c')
| -rw-r--r-- | core/src/xmake/binutils/readsyms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/xmake/binutils/readsyms.c b/core/src/xmake/binutils/readsyms.c index 2c119a538..cac501a69 100644 --- a/core/src/xmake/binutils/readsyms.c +++ b/core/src/xmake/binutils/readsyms.c @@ -82,7 +82,7 @@ tb_int_t xm_binutils_readsyms(lua_State *lua) { lua_pushfstring(lua, "cannot detect file format"); break; } - + // create result list lua_newtable(lua); @@ -160,7 +160,7 @@ tb_int_t xm_binutils_readsyms(lua_State *lua) { } while (0); if (istream) { - tb_stream_clos(istream); + tb_stream_exit(istream); } istream = tb_null; |
