From: Peter Howkins Date: Wed, 4 Jul 2018 22:19:16 +0000 (+0100) Subject: dtcm: Coverity 88137 X-Git-Tag: 2.3.0a~170 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=35ce247f9be25ec5c9b44aec14af0e26c570b577;p=oweals%2Fcde.git dtcm: Coverity 88137 --- 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); } }