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:
parent
56fa679598
commit
0f57773f76
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user