From: Peter Howkins Date: Fri, 13 Jul 2018 16:34:42 +0000 (+0100) Subject: dtcm: Coverity 87931 X-Git-Tag: 2.3.0a~118 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=603e91791875e46286bdcf31c023994f19dc86cb;p=oweals%2Fcde.git dtcm: Coverity 87931 --- diff --git a/cde/programs/dtcm/dtcm/group_editor.c b/cde/programs/dtcm/dtcm/group_editor.c index 5e2a8046..c0517861 100644 --- a/cde/programs/dtcm/dtcm/group_editor.c +++ b/cde/programs/dtcm/dtcm/group_editor.c @@ -1901,7 +1901,7 @@ remove_all_gaccess_data(GEditor *ge) { step = (Access_data *)CmDataListGetData(ge->access_data, i); if (step && step->name) free(step->name); - if (step->appt_head && step->appt_count >= 0) + if (step && step->appt_head && step->appt_count >= 0) csa_free(step->appt_head); step->appt_head = NULL; step->appt_count = 0;