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

[quickjs] memleak in getAttributeNode

This commit is contained in:
Witold Filipczyk 2024-07-22 19:07:18 +02:00
parent 7149746eb1
commit 3609f6c90c

View File

@ -2842,6 +2842,7 @@ js_element_getAttributeNode(JSContext *ctx, JSValueConst this_val, int argc, JSV
return JS_NULL; return JS_NULL;
} }
exc = dom_element_get_attribute_node(el, attr_name, &attr); exc = dom_element_get_attribute_node(el, attr_name, &attr);
dom_string_unref(attr_name);
if (exc != DOM_NO_ERR || !attr) { if (exc != DOM_NO_ERR || !attr) {
//dom_node_unref(el); //dom_node_unref(el);