bugfix: possible release of non-allocated memory blocks
This commit is contained in:
parent
632c4e2096
commit
9352d618af
@ -1,4 +1,4 @@
|
|||||||
/* $calcurse: args.c,v 1.25 2007/09/01 21:26:12 culot Exp $ */
|
/* $calcurse: args.c,v 1.26 2007/10/08 20:44:03 culot Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Calcurse - text-based organizer
|
* Calcurse - text-based organizer
|
||||||
@ -175,6 +175,7 @@ next_arg(void)
|
|||||||
hours_left, min_left, next_app->txt);
|
hours_left, min_left, next_app->txt);
|
||||||
fputs(mesg, stdout);
|
fputs(mesg, stdout);
|
||||||
}
|
}
|
||||||
|
if (next_app->txt)
|
||||||
free(next_app->txt);
|
free(next_app->txt);
|
||||||
free(next_app);
|
free(next_app);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user