From 35ce247f9be25ec5c9b44aec14af0e26c570b577 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 23:19:16 +0100 Subject: [PATCH] dtcm: Coverity 88137 --- cde/programs/dtcm/dtcm/find.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cde/programs/dtcm/dtcm/find.c b/cde/programs/dtcm/dtcm/find.c index 074a6ce5..10742709 100644 --- a/cde/programs/dtcm/dtcm/find.c +++ b/cde/programs/dtcm/dtcm/find.c @@ -548,6 +548,9 @@ fmt_time_what( lines = text_to_lines(appt->what->value->item.string_value, 1); if (lines != NULL && lines->s != NULL) { (void) cm_strcat(buf, lines->s); + } + + if (lines != NULL) { destroy_lines(lines); } } -- 2.25.1