From 55e642e586c2f31713363ceb182385fdb943a728 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 15 Feb 2010 18:33:38 +0100 Subject: [PATCH] openvz (openvzFreeDriver): avoid leaks * src/openvz/openvz_conf.c (openvzFreeDriver): Also free driver buffer. Based on a suggestion from Matthias Bolte. --- src/openvz/openvz_conf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openvz/openvz_conf.c b/src/openvz/openvz_conf.c index f4b8199466..51dbde5ee3 100644 --- a/src/openvz/openvz_conf.c +++ b/src/openvz/openvz_conf.c @@ -427,6 +427,7 @@ openvzFreeDriver(struct openvz_driver *driver) virDomainObjListDeinit(&driver->domains); virCapabilitiesFree(driver->caps); + VIR_FREE(driver); } -- GitLab