[sr-dev] git:5.8:59ab5855: file_out: Fix leaks