mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-13 11:15:08 +00:00
Fix double-free in OpenVZ driver.
* src/openvz_conf.c: Double-free fix (Anton Protopopov).
This commit is contained in:
parent
83d0aa0706
commit
be8653b183
@ -1,3 +1,8 @@
|
|||||||
|
Thu Feb 21 15:17:00 UTC 2008 Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
|
||||||
|
Fix double-free in OpenVZ driver.
|
||||||
|
* src/openvz_conf.c: Double-free fix (Anton Protopopov).
|
||||||
|
|
||||||
Wed Feb 20 22:48:27 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
Wed Feb 20 22:48:27 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/libvirt_sym.version: Added missing virStorageVolGetConnect
|
* src/libvirt_sym.version: Added missing virStorageVolGetConnect
|
||||||
|
@ -536,7 +536,6 @@ openvzGetVPSInfo(virConnectPtr conn) {
|
|||||||
if (fscanf(fp, "%d %s\n", &veid, status) != 2) {
|
if (fscanf(fp, "%d %s\n", &veid, status) != 2) {
|
||||||
error(conn, VIR_ERR_INTERNAL_ERROR,
|
error(conn, VIR_ERR_INTERNAL_ERROR,
|
||||||
"Failed to parse vzlist output");
|
"Failed to parse vzlist output");
|
||||||
free(*pnext);
|
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
if(strcmp(status, "stopped")) {
|
if(strcmp(status, "stopped")) {
|
||||||
@ -557,7 +556,6 @@ openvzGetVPSInfo(virConnectPtr conn) {
|
|||||||
vmdef = calloc(1, sizeof(*vmdef));
|
vmdef = calloc(1, sizeof(*vmdef));
|
||||||
if(!vmdef) {
|
if(!vmdef) {
|
||||||
error(conn, VIR_ERR_INTERNAL_ERROR, "calloc failed");
|
error(conn, VIR_ERR_INTERNAL_ERROR, "calloc failed");
|
||||||
free(*pnext);
|
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,7 +566,6 @@ openvzGetVPSInfo(virConnectPtr conn) {
|
|||||||
if(ret == -1) {
|
if(ret == -1) {
|
||||||
error(conn, VIR_ERR_INTERNAL_ERROR,
|
error(conn, VIR_ERR_INTERNAL_ERROR,
|
||||||
"UUID in config file malformed");
|
"UUID in config file malformed");
|
||||||
free(*pnext);
|
|
||||||
free(vmdef);
|
free(vmdef);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user