From 3fc666a9be6bd9c8b15616c60f332e1427a90f1d Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 25 Oct 2013 22:23:18 +0100 Subject: Squash Coverity #1109879 - Resource leak. --- render/box_construct.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'render/box_construct.c') diff --git a/render/box_construct.c b/render/box_construct.c index cc30d896c..3251cc17f 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -2118,12 +2118,16 @@ bool box_create_frameset(struct content_html_frames *f, dom_node *n, if (err == DOM_NO_ERR && s != NULL) { col_width = box_parse_multi_lengths(dom_string_data(s), &cols); dom_string_unref(s); - if (col_width == NULL) + if (col_width == NULL) { + free(row_height); return false; + } } else { col_width = calloc(1, sizeof(struct frame_dimension)); - if (col_width == NULL) + if (col_width == NULL) { + free(row_height); return false; + } col_width->value = 100; col_width->unit = FRAME_DIMENSION_PERCENT; } -- cgit v1.2.3