1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[mujs] Free allocated string.

Note, seems that memory allocated by js_pushstring must be freed
somehow. It will be addressed later.
This commit is contained in:
Witold Filipczyk 2022-08-29 18:49:01 +02:00
parent 56fa679598
commit 0f57773f76

View File

@ -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