Fix crash in mail stuff due to bad free().