Add vector release func and some log for memory leak.