From 1ed5cf1d86689944b122c437b254142a7b2cbc77 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 4 Aug 2024 08:50:09 +0200 Subject: [PATCH] [mujs] Free attr_name --- src/ecmascript/mujs/element.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ecmascript/mujs/element.c b/src/ecmascript/mujs/element.c index 90fabfd8..a8bfb1e0 100644 --- a/src/ecmascript/mujs/element.c +++ b/src/ecmascript/mujs/element.c @@ -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);