From faf667ada7181b50890bc9fc970b99da0916d02c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 10 Dec 2019 19:26:12 +0000 Subject: HTML: box_consturction: cleanup name dom_string in box_object. --- content/handlers/html/box_construct.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/handlers/html/box_construct.c b/content/handlers/html/box_construct.c index 50d102729..6271405fe 100644 --- a/content/handlers/html/box_construct.c +++ b/content/handlers/html/box_construct.c @@ -1849,9 +1849,11 @@ bool box_object(BOX_SPECIAL_PARAMS) /* The first non-param child is the start of * the alt html. Therefore, we should break * out of this loop. */ + dom_string_unref(name); dom_node_unref(c); break; } + dom_string_unref(name); param = talloc(params, struct object_param); if (param == NULL) { -- cgit v1.2.3