Solved leak memory problem (maybe due to regex on libc)