assert_se(b);
assert_se(bitmap_ensure_allocated(&b) == 0);
- bitmap_free(b);
- b = NULL;
+ b = bitmap_free(b);
assert_se(bitmap_ensure_allocated(&b) == 0);
assert_se(bitmap_isset(b, 0) == false);
bitmap_clear(b);
assert_se(bitmap_isclear(b) == true);
assert_se(bitmap_equal(b, b2) == false);
- bitmap_free(b2);
- b2 = NULL;
+ b2 = bitmap_free(b2);
assert_se(bitmap_set(b, UINT_MAX) == -ERANGE);
- bitmap_free(b);
- b = NULL;
+ b = bitmap_free(b);
assert_se(bitmap_ensure_allocated(&b) == 0);
assert_se(bitmap_ensure_allocated(&b2) == 0);