diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-10-25 22:23:18 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-10-25 22:23:18 +0100 |
commit | 3fc666a9be6bd9c8b15616c60f332e1427a90f1d (patch) | |
tree | acb19cfc1208a5dd857a123e034e2d03fc289701 /render/box_construct.c | |
parent | 4776f05430e1b8002e6ca6eec3e69f84fa130eda (diff) | |
download | netsurf-3fc666a9be6bd9c8b15616c60f332e1427a90f1d.tar.gz netsurf-3fc666a9be6bd9c8b15616c60f332e1427a90f1d.tar.bz2 |
Squash Coverity #1109879 - Resource leak.
Diffstat (limited to 'render/box_construct.c')
-rw-r--r-- | render/box_construct.c | 8 |
1 files changed, 6 insertions, 2 deletions
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; } |