diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2016-10-13 08:20:35 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2016-10-13 19:51:43 +0200 |
commit | 9ef5fe2191c5d1d857bc4fe828c15268ba8caa90 (patch) | |
tree | a02c31a337f0b189ea0cab7141901ee455ccc3d9 /src/args.c | |
parent | da6334cf385ff064a8296e8c0d0e080fa2014eaa (diff) | |
download | calcurse-9ef5fe2191c5d1d857bc4fe828c15268ba8caa90.zip |
Always use memory management wrappers
Use mem_*() wrappers instead of directly accessing libc functions when
allocating/deallocating memory.
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/args.c')
-rw-r--r-- | src/args.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -317,7 +317,7 @@ static time_t parse_datetimearg(const char *str) static int parse_daterange(const char *str, time_t *date_from, time_t *date_to) { int ret = 0; - char *s = xstrdup(str); + char *s = mem_strdup(str); char *p = strchr(s, ','); if (!p) @@ -344,7 +344,7 @@ static int parse_daterange(const char *str, time_t *date_from, time_t *date_to) ret = 1; cleanup: - free(s); + mem_free(s); return ret; } |