From c53be108924ed460aad35bb30c5c88a849bded20 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 14 Mar 2016 15:54:10 +0000 Subject: [PATCH] Fix memory leak in error handling error handling during form gadget construction could leak, this fixes the leak on error. Fixes coverity CID 1109875 --- render/box_construct.c | 1 + 1 file changed, 1 insertion(+) diff --git a/render/box_construct.c b/render/box_construct.c index adb450946..8434253a3 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -2654,6 +2654,7 @@ bool box_select(BOX_SPECIAL_PARAMS) if (err != DOM_NO_ERR) { dom_node_unref(c2); dom_node_unref(c); + form_free_control(gadget); return false; }