From: Peter Howkins Date: Fri, 13 Jul 2018 15:40:04 +0000 (+0100) Subject: dtcm: Coverity 88636 X-Git-Tag: 2.3.0a~140 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4111b85da84aaeb942e6670c674f49ff362d8d4c;p=oweals%2Fcde.git dtcm: Coverity 88636 --- diff --git a/cde/programs/dtcm/libDtCmP/cm_tty.c b/cde/programs/dtcm/libDtCmP/cm_tty.c index ec8247bf..baa3ceb1 100644 --- a/cde/programs/dtcm/libDtCmP/cm_tty.c +++ b/cde/programs/dtcm/libDtCmP/cm_tty.c @@ -1148,12 +1148,12 @@ 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); + /* this should pull off the new attribute name */ a_name = a_tag = a_value = NULL;