[ros-diffs] [turner] 20994: Added some error checking after allocations. Part of bug #1110.