From: Peter Howkins Date: Wed, 4 Jul 2018 21:11:44 +0000 (+0100) Subject: dtcm: Coverity 89212, 88188 and 88636 X-Git-Tag: 2.3.0a~182 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4d0c2752f7d5e627bdcd3d1051c3d0b61713d508;p=oweals%2Fcde.git dtcm: Coverity 89212, 88188 and 88636 --- 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;