diff --git a/src/slurmctld/reservation.c b/src/slurmctld/reservation.c index c2bb4b6da6bf3a8ff3b55a453ab2e59f84d9ace2..98f4a64e380289461c78192dd274336c0790a390 100644 --- a/src/slurmctld/reservation.c +++ b/src/slurmctld/reservation.c @@ -2990,7 +2990,7 @@ static void _rebuild_core_bitmap(slurmctld_resv_t *resv_ptr) resv_ptr->name); core_cnt = bit_set_count(resv_ptr->core_bitmap); /* Cores needed */ - bit_free(resv_ptr->core_bitmap); + FREE_NULL_BITMAP(resv_ptr->core_bitmap); _create_cluster_core_bitmap(&resv_ptr->core_bitmap);