Fixes allocb's use of mem flags