mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-26 22:45:17 +00:00
Fix memory leak in openvz driver
* src/openvz_driver.c: Remove unneccessary strdup() on hypervisor type api call
This commit is contained in:
parent
7a4769bbdb
commit
bf69fd9b22
@ -1156,7 +1156,7 @@ static int openvzClose(virConnectPtr conn) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const char *openvzGetType(virConnectPtr conn ATTRIBUTE_UNUSED) {
|
static const char *openvzGetType(virConnectPtr conn ATTRIBUTE_UNUSED) {
|
||||||
return strdup("OpenVZ");
|
return "OpenVZ";
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *openvzGetCapabilities(virConnectPtr conn) {
|
static char *openvzGetCapabilities(virConnectPtr conn) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user