vulkaninfo: Fix memory init/leak
authorKarl Schultz <karl@lunarg.com>
Thu, 6 Dec 2018 23:10:25 +0000 (16:10 -0700)
committerjeremyk-lunarg <jeremyk@lunarg.com>
Fri, 7 Dec 2018 16:06:31 +0000 (09:06 -0700)
commit086c4895e43c80be16cade646a1b1d44fee853c2
tree0aca5e1b02f4815e621a2a18bd1f4299a97f0fb6
parent530732d15b736c3b29d615629035028cda2f032e
vulkaninfo:  Fix memory init/leak

- Clear the structures allocated for the pNext chains.  While this
  is not strictly necessary, any pNext structure that is not
  filled in by a driver (because the extension isn't there) gets
  left in an untouched state.  This can be a false positive flagged
  by valgrind.
- Use XFree to free storage allocated by Xlib's XGetVisualInfo().
  This fixes an actual leak.
vulkaninfo/vulkaninfo.c