lib/message-file: plug three memleaks.