aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-10-08 20:44:03 +0000
committerFrederic Culot <calcurse@culot.org>2007-10-08 20:44:03 +0000
commit9352d618af456e7bd709d1982b0fef5c7cac2248 (patch)
tree871da62caa519ef245329762f55306454449d04d
parent632c4e20963dac191d3a23114659143c223ebe05 (diff)
downloadcalcurse-9352d618af456e7bd709d1982b0fef5c7cac2248.tar.gz
calcurse-9352d618af456e7bd709d1982b0fef5c7cac2248.zip
bugfix: possible release of non-allocated memory blocks
-rwxr-xr-xsrc/args.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/args.c b/src/args.c
index 08cc8ee..7019b49 100755
--- a/src/args.c
+++ b/src/args.c
@@ -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
@@ -175,7 +175,8 @@ next_arg(void)
hours_left, min_left, next_app->txt);
fputs(mesg, stdout);
}
- free(next_app->txt);
+ if (next_app->txt)
+ free(next_app->txt);
free(next_app);
}