toggle: correct malloc size