mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
In smjs_get_keymap_object, free the private data JS_SetPrivate fails,
per fonseca's suggestion.
This commit is contained in:
parent
f46cdd8f03
commit
309f3d26f3
@ -163,6 +163,8 @@ smjs_get_keymap_object(enum keymap_id keymap_id)
|
||||
if (JS_FALSE != JS_SetPrivate(smjs_ctx, keymap_object, data))
|
||||
return keymap_object;
|
||||
|
||||
mem_free(data);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user