fix memory leak at util.m