CheckMemoryLeak: moved 'popen' into posix scope