dtcm: Coverity 88331 and 88169

This commit is contained in:
Peter Howkins
2018-07-04 23:26:52 +01:00
parent d46a8e8d94
commit 2f60d57ab9

View File

@@ -584,8 +584,10 @@ de_apply_proc(Widget w, XtPointer client_data, XtPointer data) {
appt->count = old_attr_count;
de->modified = False;
if (!str)
if (!str) {
free_appt_struct(&appt);
return;
}
/* we need to distinguish between whether the data is being
saved as part of application termination, or as part of
@@ -614,6 +616,8 @@ de_apply_proc(Widget w, XtPointer client_data, XtPointer data) {
if (!fp) {
XBell(dpy, 50);
free(str);
free_appt_struct(&appt);
return;
}
@@ -638,6 +642,8 @@ de_apply_proc(Widget w, XtPointer client_data, XtPointer data) {
if (!fp) {
XBell(dpy, 50);
free(str);
free_appt_struct(&appt);
return;
}