Commit 99eb8415 authored by Tim Rühsen's avatar Tim Rühsen Committed by Bruno Haible
Browse files

parse-datetime: Fix memleak

* lib/parse-datetime.y (parse_datetime2): Cleanup on
localtime_rz() failure.
parent b82b3835
2017-05-16 Tim Rühsen <tim.ruehsen@gmx.de>
parse-datetime: Fix memleak
* lib/parse-datetime.y (parse_datetime2): Cleanup on
localtime_rz() failure.
2017-05-16 Bruno Haible <bruno@clisp.org>
 
javacomp: Fix handle leak.
......@@ -1811,7 +1811,7 @@ parse_datetime2 (struct timespec *result, char const *p,
struct tm tmp;
if (! localtime_rz (tz, &now->tv_sec, &tmp))
return false;
goto fail;
/* As documented, be careful to treat the empty string just like
a date string of "0". Without this, an empty string would be
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment