Fix mismatched free/delete