From 29db578db383df966579e50b916a92f605a3df6e Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Tue, 13 Aug 2024 13:29:17 -0600 Subject: [PATCH] summary: releae labels on exception (CID 507859 507880) Signed-off-by: Eduardo Silva --- src/cmt_cat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmt_cat.c b/src/cmt_cat.c index a9ba723..b217119 100644 --- a/src/cmt_cat.c +++ b/src/cmt_cat.c @@ -429,6 +429,8 @@ int cmt_cat_summary(struct cmt *cmt, struct cmt_summary *summary, quantiles, map->label_count, labels); if (!sum) { + free(labels); + free(quantiles); return -1; }