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

[mujs] Free attr_name

This commit is contained in:
Witold Filipczyk 2024-08-04 08:50:09 +02:00
parent 999a2c6de7
commit 1ed5cf1d86

View File

@ -2529,6 +2529,7 @@ mjs_element_getAttributeNode(js_State *J)
return;
}
exc = dom_element_get_attribute_node(el, attr_name, &attr);
dom_string_unref(attr_name);
if (exc != DOM_NO_ERR || !attr) {
js_pushnull(J);