Fix a few bugs in the new ktrdump code
authorAggelos Economopoulos <aoiko@cc.ece.ntua.gr>
Mon, 16 Jan 2012 20:57:05 +0000 (12:57 -0800)
committerAggelos Economopoulos <aggelos@pearl.nodomain>
Mon, 16 Jan 2012 21:57:00 +0000 (22:57 +0100)
commit485076fb784cffb6eec182d0280a8ead5b0195fe
treedc6bc8f52b491719913013e87b47b5e9d340f5c7
parent7d528da64262b5d1483c58089f66f50a625b8e1e
Fix a few bugs in the new ktrdump code

- Pass in the correct machine_valist pointer on i386 (which means we need
  some indirection on x86_64).
- Keep references to all memory blocks that we allocate and free them
  when we're done with the machine_valist.
- Make sure we don't leak any memory on the error paths either.
usr.bin/ktrdump/ktrdump.c