From 4111b85da84aaeb942e6670c674f49ff362d8d4c Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Fri, 13 Jul 2018 16:40:04 +0100 Subject: [PATCH] dtcm: Coverity 88636 --- cde/programs/dtcm/libDtCmP/cm_tty.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.25.1