]> git.proxmox.com Git - systemd.git/blobdiff - src/basic/bitmap.c
Imported Upstream version 227
[systemd.git] / src / basic / bitmap.c
index 7ea3357031b75ba1e2c03649ea531f282b0d9ae3..2eabf3e1c1bbaf5d140c2fc1214bd74e80e2cad9 100644 (file)
@@ -145,8 +145,7 @@ bool bitmap_isclear(Bitmap *b) {
 void bitmap_clear(Bitmap *b) {
         assert(b);
 
-        free(b->bitmaps);
-        b->bitmaps = NULL;
+        b->bitmaps = mfree(b->bitmaps);
         b->n_bitmaps = 0;
         b->bitmaps_allocated = 0;
 }