mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtcm: Coverity 88331 and 88169
This commit is contained in:
parent
d46a8e8d94
commit
2f60d57ab9
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue