From 4d0c2752f7d5e627bdcd3d1051c3d0b61713d508 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 22:11:44 +0100 Subject: [PATCH] dtcm: Coverity 89212, 88188 and 88636 --- cde/programs/dtcm/libDtCmP/cm_tty.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cde/programs/dtcm/libDtCmP/cm_tty.c b/cde/programs/dtcm/libDtCmP/cm_tty.c index 9d574571..e7897bca 100644 --- a/cde/programs/dtcm/libDtCmP/cm_tty.c +++ b/cde/programs/dtcm/libDtCmP/cm_tty.c @@ -1213,12 +1213,13 @@ read_new_appt(FILE *fp, Dtcm_appointment **appt, Props *p, int version) a_name, a_tag, a_value); ++attrs_written; } - - free(a_name); - free(a_tag); - free(a_value); } + free(a_name); + free(a_tag); + free(a_value); + + avlist->count = attrs_written; set_appt_links(avlist); *appt = avlist; -- 2.25.1