]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFstable/10 r299651:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 May 2016 09:54:15 +0000 (09:54 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 May 2016 09:54:15 +0000 (09:54 +0000)
commit3728ba57202e8b127300850adb9cdd7953ca8fe3
treee169a46c7f562a8f96fbc831afe4d142a3d3c8dd
parent78ed274c52d736e26d49e3e24ff9332b978f5e24
MFstable/10 r299651:

MFC r298839:

Fix memory allocation edgecases in kvm_argv(..)

- Don't leak nbufp on realloc failure in kvm_argv
- Catch malloc errors with bufp
- Set buflen last in the "buflen == 0" case to ensure that
  bufp/nbufp is properly reallocated on the next go around

git-svn-id: svn://svn.freebsd.org/base/stable/9@299652 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libkvm/kvm_proc.c