summaryrefslogtreecommitdiff
path: root/css/css.c
diff options
context:
space:
mode:
Diffstat (limited to 'css/css.c')
-rw-r--r--css/css.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/css/css.c b/css/css.c
index fb401a0c2..e7d1200b2 100644
--- a/css/css.c
+++ b/css/css.c
@@ -1025,6 +1025,7 @@ struct css_working_stylesheet *css_make_working_stylesheet(
rule_scratch = talloc_array(working_stylesheet, struct css_selector *,
css_count);
if (!rule_scratch) {
+ free(css);
talloc_free(working_stylesheet);
return 0;
}
@@ -1033,11 +1034,13 @@ struct css_working_stylesheet *css_make_working_stylesheet(
for (chain = 0; chain != HASH_SIZE; chain++) {
if (!css_working_merge_chains(working_stylesheet, css,
css_count, chain, rule_scratch)) {
+ free(css);
talloc_free(working_stylesheet);
return 0;
}
}
+ free(css);
talloc_free(rule_scratch);
#ifdef DEBUG_WORKING_STYLESHEET