dtcm: Coverity 88137
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 22:19:16 +0000 (23:19 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 22:19:16 +0000 (23:19 +0100)
cde/programs/dtcm/dtcm/find.c

index 074a6ce598ca5d4196fcd64fc70bcdbf665770c9..10742709a578f28020f6a4f7d75bdbf9b74e3902 100644 (file)
@@ -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);
         }
 }