]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
kvm_openfiles() uses the supplied buffer for storing error messages
authorpeter <peter@FreeBSD.org>
Fri, 24 Jun 2005 00:50:12 +0000 (00:50 +0000)
committerpeter <peter@FreeBSD.org>
Fri, 24 Jun 2005 00:50:12 +0000 (00:50 +0000)
commit756b97ccf0d5f9d5f759d5979604efe2c242866a
tree0521e4172cbb8c1c0bf2378bf7b749261e6cfd37
parenta5210ef96000fbbc89552a86d0bb13b0c17246ef
kvm_openfiles() uses the supplied buffer for storing error messages
in future calls, so we can't free it here.  The right place to free the
buffer would be to be after kvm_close(), but we don't do that yet.  A
static buffer would work too.

Reviewed by:  marcel (who has other plans for this anyway)
Approved by:  re
gnu/usr.bin/gdb/kgdb/main.c