diff options
author | glebius <glebius@FreeBSD.org> | 2011-07-14 18:38:10 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2011-07-14 18:38:10 +0000 |
commit | 4055dcbe1cacf8618218d189236613d83963d5ee (patch) | |
tree | b618d18ef0ae9cbf850622d012b2e65dfec5d7fd /usr.bin | |
parent | ea2a83a8daa00350e502581002584808808991f3 (diff) | |
download | FreeBSD-src-4055dcbe1cacf8618218d189236613d83963d5ee.zip FreeBSD-src-4055dcbe1cacf8618218d189236613d83963d5ee.tar.gz |
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
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions