diff options
Diffstat (limited to 'time')
-rw-r--r-- | time/tzset.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/time/tzset.c b/time/tzset.c index d765900..49935c0 100644 --- a/time/tzset.c +++ b/time/tzset.c @@ -312,13 +312,18 @@ __tzset_internal (always) { free (old_tz); old_tz = NULL; + free (tzbuf); return; } } } else - /* There is no DST. */ - tz_rules[1].name = tz_rules[0].name; + { + /* There is no DST. */ + tz_rules[1].name = tz_rules[0].name; + free (tzbuf); + return; + } done_names: free (tzbuf); |