Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-06-23 17:38:06 +0400
committerCorinna Vinschen <corinna@vinschen.de>2014-06-23 17:38:06 +0400
commit28b4c8483efc8b3c4f2860a590e719445e5daf36 (patch)
tree89f02b116ee3460b14a85e3677c5881ce19ef474 /winsup/cygwin/localtime.cc
parent4337e28e6218bd0f924536998681d2f1da3db98e (diff)
* localtime.cc (tzload): Fix leaking memory (CID 60001).
Diffstat (limited to 'winsup/cygwin/localtime.cc')
-rw-r--r--winsup/cygwin/localtime.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/localtime.cc b/winsup/cygwin/localtime.cc
index 29371703e..139faced8 100644
--- a/winsup/cygwin/localtime.cc
+++ b/winsup/cygwin/localtime.cc
@@ -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;