]> xenbits.xensource.com Git - libvirt.git/commit
Avoid double free in qemuMonitorCommonTestInit on OOM
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 25 Sep 2013 14:29:45 +0000 (15:29 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 25 Sep 2013 17:12:09 +0000 (18:12 +0100)
commit9129f9b3f1c347889e78f8c671d625c11b9eb864
treecff0817456970831be8006b1d7135b2ceb0e53d0
parent92f8c3fc71420765294534f5290c614e8315ecbd
Avoid double free in qemuMonitorCommonTestInit on OOM

The qemuMonitorCommonTestInit method did not allocate the
test object, so it should not free it upon failure. Doing
so causes a double free with the caller.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tests/qemumonitortestutils.c