output: correct buffer leak when calling tdm_output_commit without a handler