summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ofwdump
diff options
context:
space:
mode:
authorjamie <jamie@FreeBSD.org>2012-10-04 19:07:05 +0000
committerjamie <jamie@FreeBSD.org>2012-10-04 19:07:05 +0000
commitc9ef684bc2b146386cb5c0fe058108d62dcc11a3 (patch)
tree3e2e498ff7f40cd3a336e9c4fb13f69fae9ecc98 /usr.sbin/ofwdump
parent1b32102bdf4aa51f58e449687805d2a027d82f51 (diff)
downloadFreeBSD-src-c9ef684bc2b146386cb5c0fe058108d62dcc11a3.zip
FreeBSD-src-c9ef684bc2b146386cb5c0fe058108d62dcc11a3.tar.gz
Fix some memory allocation errors:
* jail_setv will leak a parameter name if jailparam_import fails. * jailparam_all loses the jailparam pointer on realloc error (a clear freshman mistake). * If jailparam_init fails, the caller doesn't need to jailparam_free the buffer. That's not really clear, so set things to NULL allowing jailparam_free to work without error (though it's still not required).
Diffstat (limited to 'usr.sbin/ofwdump')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud