dtcm: Coverity 88331 and 88169
This commit is contained in:
@@ -584,8 +584,10 @@ de_apply_proc(Widget w, XtPointer client_data, XtPointer data) {
|
|||||||
appt->count = old_attr_count;
|
appt->count = old_attr_count;
|
||||||
de->modified = False;
|
de->modified = False;
|
||||||
|
|
||||||
if (!str)
|
if (!str) {
|
||||||
|
free_appt_struct(&appt);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* we need to distinguish between whether the data is being
|
/* we need to distinguish between whether the data is being
|
||||||
saved as part of application termination, or as part of
|
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) {
|
if (!fp) {
|
||||||
XBell(dpy, 50);
|
XBell(dpy, 50);
|
||||||
|
free(str);
|
||||||
|
free_appt_struct(&appt);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -638,6 +642,8 @@ de_apply_proc(Widget w, XtPointer client_data, XtPointer data) {
|
|||||||
|
|
||||||
if (!fp) {
|
if (!fp) {
|
||||||
XBell(dpy, 50);
|
XBell(dpy, 50);
|
||||||
|
free(str);
|
||||||
|
free_appt_struct(&appt);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user