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:
parent
7149746eb1
commit
3609f6c90c
@ -2842,6 +2842,7 @@ js_element_getAttributeNode(JSContext *ctx, JSValueConst this_val, int argc, JSV
|
||||
return JS_NULL;
|
||||
}
|
||||
exc = dom_element_get_attribute_node(el, attr_name, &attr);
|
||||
dom_string_unref(attr_name);
|
||||
|
||||
if (exc != DOM_NO_ERR || !attr) {
|
||||
//dom_node_unref(el);
|
||||
|
Loading…
Reference in New Issue
Block a user