From 0da93b0d430cdc1701f8a62ab35a8033e4bf2200 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 23:55:29 +0100 Subject: [PATCH] dtcm: Coverity 89273 --- cde/programs/dtcm/libDtCmP/cm_tty.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cde/programs/dtcm/libDtCmP/cm_tty.c b/cde/programs/dtcm/libDtCmP/cm_tty.c index 588f4e5a..a18a4570 100644 --- a/cde/programs/dtcm/libDtCmP/cm_tty.c +++ b/cde/programs/dtcm/libDtCmP/cm_tty.c @@ -1633,10 +1633,11 @@ parse_appt_from_file(nl_catd catd, char *file, CmDataList *list, Props *p, valid_op = validate_appt(catd, appt, s_buf, e_buf, d_buf, dur, w_buf, r_buf, f_buf, query, key_data, version); - if (w_buf) - free(w_buf); } + free(w_buf); + + scrub_attr_list(appt); fclose(fp); -- 2.25.1