summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-04-17 20:42:47 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-04-17 20:42:47 +0200
commit7758a418518bb4af0aa20bab0bbd360658d2fbc7 (patch)
tree74ad13211c70563af5259c3afed054e9a5dce870
parentcc49f1e2628d345c784dac24fe94bcb3445d4c8d (diff)
downloadcalcurse-7758a418518bb4af0aa20bab0bbd360658d2fbc7.zip
Use mem_free() instead of xfree() in check_time().
xfree() should never be used directly and only be called by one of the mem_*() wrappers. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 22c5be9..d93c827 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -594,7 +594,7 @@ check_time (char *string)
else if (strlen(s) < 4 && is_all_digit(s) && atoi(s) > 0)
ret = 2;
- xfree(s);
+ mem_free(s);
return ret;
}