mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +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) {
|
||||
return strdup("OpenVZ");
|
||||
return "OpenVZ";
|
||||
}
|
||||
|
||||
static char *openvzGetCapabilities(virConnectPtr conn) {
|
||||
|
Loading…
Reference in New Issue
Block a user