diff --git a/src/ecmascript/mujs/localstorage.cpp b/src/ecmascript/mujs/localstorage.cpp index c3c64d474..869fdbc0e 100644 --- a/src/ecmascript/mujs/localstorage.cpp +++ b/src/ecmascript/mujs/localstorage.cpp @@ -120,8 +120,8 @@ mjs_localstorage_getitem(js_State *J) js_pushnull(J); return; } - // TODO possible memleak js_pushstring(J, val); + mem_free(val); } static void