Fix memory leak in openvz driver

* src/openvz_driver.c: Remove unneccessary strdup() on hypervisor
  type api call
This commit is contained in:
Daniel P. Berrange 2009-08-03 11:42:39 +01:00
parent 7a4769bbdb
commit bf69fd9b22

View File

@ -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) {