summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2019-05-04 13:52:17 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2019-05-04 13:52:17 +0100
commitf6bc2001832f1941ea40d52ab1333f3ceb76348a (patch)
tree87b5ee1870bebcd2c19945fcd9949c210bb87b07
parent27657ff21c4dfff87ef1830cecdbef5dffec9910 (diff)
downloadlibcss-f6bc2001832f1941ea40d52ab1333f3ceb76348a.tar.gz
libcss-f6bc2001832f1941ea40d52ab1333f3ceb76348a.tar.bz2
Media queries: Squash cond_parts parts leak.
Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
-rw-r--r--src/parse/mq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse/mq.c b/src/parse/mq.c
index e7227f7..7c1286f 100644
--- a/src/parse/mq.c
+++ b/src/parse/mq.c
@@ -45,6 +45,7 @@ static void css__mq_cond_parts_destroy(css_mq_cond_parts *cond_parts)
for (uint32_t i = 0; i < cond_parts->nparts; i++) {
css__mq_cond_or_feature_destroy(cond_parts->parts[i]);
}
+ free(cond_parts->parts);
free(cond_parts);
}
}