src: Fix memory leak in unit test
This commit is contained in:
parent
3be5856c82
commit
5119e82b93
|
@ -473,6 +473,7 @@ void test_util_localtime_date(void) {
|
|||
|
||||
if (tz) {
|
||||
setenv("TZ", tz, 1);
|
||||
free(tz);
|
||||
} else {
|
||||
unsetenv("TZ");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue