* localtime.cc (tzload): Fix leaking memory (CID 60001).

This commit is contained in:
Corinna Vinschen 2014-06-23 13:38:06 +00:00
parent 4337e28e62
commit 28b4c8483e
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2014-06-23 Corinna Vinschen <corinna@vinschen.de>
* localtime.cc (tzload): Fix leaking memory (CID 60001).
2014-06-23 Corinna Vinschen <corinna@vinschen.de>
* exceptions.cc (try_to_debug): Free environment pointer when not used

View File

@ -698,7 +698,7 @@ tzload(timezone_t sp, const char *name, const int doextend)
else
base = name;
if (strcmp(base, "posixrules"))
return -1;
goto oops;
/* We've got a built-in copy of posixrules just in case */
fid = -2;