From 5119e82b936c112229562c15d54af925512c7100 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 24 Oct 2017 01:45:53 +0900 Subject: [PATCH] src: Fix memory leak in unit test --- src/util_test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util_test.cc b/src/util_test.cc index d21fe7fc..d375b437 100644 --- a/src/util_test.cc +++ b/src/util_test.cc @@ -473,6 +473,7 @@ void test_util_localtime_date(void) { if (tz) { setenv("TZ", tz, 1); + free(tz); } else { unsetenv("TZ"); }