Gleb Smirnoff 0a7d45d349 In ng_attach_cntl() first allocate things that may fail, and then
do the rest of initialization. This simplifies code and fixes
a double free in failure scenario.

Reviewed by:	bz
2011-07-14 18:38:10 +00:00
..
2011-07-06 09:43:25 +00:00
2011-07-04 20:50:09 +00:00
2010-04-01 16:18:16 +00:00
2010-06-10 16:45:30 +00:00
2010-04-07 16:29:10 +00:00
2011-04-18 14:07:01 +00:00
2010-04-01 10:41:01 +00:00
2009-10-24 18:49:17 +00:00