Stop annoying warnings about mismatched types with the argument of a free