Skip to content

Commit 29db578

Browse files
committed
summary: releae labels on exception (CID 507859 507880)
Signed-off-by: Eduardo Silva <[email protected]>
1 parent c57045b commit 29db578

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cmt_cat.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ int cmt_cat_summary(struct cmt *cmt, struct cmt_summary *summary,
429429
quantiles,
430430
map->label_count, labels);
431431
if (!sum) {
432+
free(labels);
433+
free(quantiles);
432434
return -1;
433435
}
434436

0 commit comments

Comments
 (0)