fix bug in output mode BSDCONV_PASS, strictly isolate malloc pool