From bf69fd9b22148a66f2be3d11f4b021be4796d853 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Mon, 3 Aug 2009 11:42:39 +0100 Subject: [PATCH] Fix memory leak in openvz driver * src/openvz_driver.c: Remove unneccessary strdup() on hypervisor type api call --- src/openvz_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openvz_driver.c b/src/openvz_driver.c index 85f6173005..6b7c49df4c 100644 --- a/src/openvz_driver.c +++ b/src/openvz_driver.c @@ -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) { -- GitLab