dtcm: Coverity 89273
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 22:55:29 +0000 (23:55 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 22:55:29 +0000 (23:55 +0100)
cde/programs/dtcm/libDtCmP/cm_tty.c

index 588f4e5a83a8dd356e7c201f935c81344eaf62d8..a18a457089a17dd330dbf8d33da61db41cdafac6 100644 (file)
@@ -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);