Reading the link i see a much worse bug,
when the caller to content::revision::update_content has no temp filename passed in but the storage type is set to file, it creates a file from the text content so it can be stored correctly.
Since the caller is not aware of this temp file it can't remove it. Of course if you are using storage type "file" you should really pass in a file.