From: Peter Howkins Date: Wed, 4 Jul 2018 22:55:29 +0000 (+0100) Subject: dtcm: Coverity 89273 X-Git-Tag: 2.3.0a~159 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0da93b0d430cdc1701f8a62ab35a8033e4bf2200;p=oweals%2Fcde.git dtcm: Coverity 89273 --- 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);