libc/time/lib_localtime : Change free to lib_free
In PR#4551, malloc is changed to lib_malloc, then we should change free to lib_free also.
Because lib can be used from kernel and user spaces.
@@ -791,11 +791,11 @@ static int tzload(FAR const char *name, FAR struct state_s *const sp, const int
}
sp->defaulttype = i;
- free(up);
+ lib_free(up);
return 0;
oops:
- free(up);
+ lib_free(up);
return -1;
}
