Fixed bad argument ordering in primitive_free()