dtcm: Coverity 89273
authorPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 15:29:19 +0000 (16:29 +0100)
committerPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 15:29:19 +0000 (16:29 +0100)
cde/programs/dtcm/libDtCmP/cm_tty.c

index a18a457089a17dd330dbf8d33da61db41cdafac6..ec8247bfabd903afcfee0ad13e7b1f8c6fb951b6 100644 (file)
@@ -1624,6 +1624,7 @@ parse_appt_from_file(nl_catd catd, char *file, CmDataList *list, Props *p,
         */
 
        if (found_appt == B_FALSE) {
+               free(w_buf);
                fclose(fp);
                return(INVALID_DATE);
        }