src: Fix memory leak in unit test

This commit is contained in:
Tatsuhiro Tsujikawa 2017-10-24 01:45:53 +09:00
parent 3be5856c82
commit 5119e82b93
1 changed files with 1 additions and 0 deletions

View File

@ -473,6 +473,7 @@ void test_util_localtime_date(void) {
if (tz) {
setenv("TZ", tz, 1);
free(tz);
} else {
unsetenv("TZ");
}