From: Peter Howkins Date: Wed, 4 Jul 2018 21:16:48 +0000 (+0100) Subject: dtcm: Coverity 88687 X-Git-Tag: 2.3.0a~180 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4d15194de03b491ea78943b443186cfb069b6fe1;p=oweals%2Fcde.git dtcm: Coverity 88687 --- diff --git a/cde/programs/dtcm/dtcm/format.c b/cde/programs/dtcm/dtcm/format.c index 47456765..6c7c3f2d 100644 --- a/cde/programs/dtcm/dtcm/format.c +++ b/cde/programs/dtcm/dtcm/format.c @@ -420,6 +420,9 @@ format_abbrev_appt(Dtcm_appointment *appt, char *b, Boolean show_am, lines = text_to_lines(appt->what->value->item.string_value, 1); if (lines != NULL && lines->s != NULL) { (void) cm_strcat(b, lines->s); + } + + if(lines != NULL) { destroy_lines(lines); } }