StreamOutput: Buffer allocated by malloc being freed with delete

Thanks to adamgr for noticing this.