]> xenbits.xensource.com Git - libvirt.git/commit
tests: Need to initialize 'test' properly on error path
authorJohn Ferlan <jferlan@redhat.com>
Tue, 22 Jan 2013 14:15:50 +0000 (09:15 -0500)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 22 Jan 2013 16:29:26 +0000 (17:29 +0100)
commit35c30522a5720bc4c61f2afef230915ecae75720
tree023e7e260e9f6076441943876f322346d55f9020
parent618a5b33d4d0402e3d3ed3d37167cdf877353669
tests: Need to initialize 'test' properly on error path

In the error path, the test buffer is free'd, but due to how the free
routine is written the 'test' buffer pointer does not return to the caller
as NULL and then the free'd buffer address is returned to the caller.
tests/qemumonitortestutils.c