diff --git a/cde/programs/dtcm/libDtCmP/cm_tty.c b/cde/programs/dtcm/libDtCmP/cm_tty.c index ec8247bfa..baa3ceb11 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;