diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-04-17 20:42:47 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-04-17 20:42:47 +0200 |
commit | 7758a418518bb4af0aa20bab0bbd360658d2fbc7 (patch) | |
tree | 74ad13211c70563af5259c3afed054e9a5dce870 /src/utils.c | |
parent | cc49f1e2628d345c784dac24fe94bcb3445d4c8d (diff) | |
download | calcurse-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>
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 2 |
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; } |