]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r241197:
authorjamie <jamie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 9 Jul 2015 22:55:43 +0000 (22:55 +0000)
committerjamie <jamie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 9 Jul 2015 22:55:43 +0000 (22:55 +0000)
commit53952bf1919b5d4c9dbf32e7e6743ca93d9e42bf
tree45cd7d0c508ce8c3aa640ee8ec4d1568449b3635
parent6facf90eebf937df891b37abe12fe89567ffa82a
MFC r241197:

  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).

git-svn-id: svn://svn.freebsd.org/base/stable/9@285343 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libjail/jail.c