ensure changing and resetting allocation.enable during deallocation
Merge pull request #10 from crate/m/allocation_enable_setting

ensure changing and resetting allocation.enable during deallocation