fixed memory leak when st_compile() fail