* if the message is not valid, try to free the message pointer in message_free