c1c534
From f022e7ba0c41592a8c117b29179cb3c8394210e6 Mon Sep 17 00:00:00 2001
c1c534
Message-Id: <f022e7ba0c41592a8c117b29179cb3c8394210e6@dist-git>
c1c534
From: Martin Kletzander <mkletzan@redhat.com>
c1c534
Date: Wed, 31 Jan 2018 16:32:38 +0100
c1c534
Subject: [PATCH] util: Remove unused variable in virResctrlGetInfo
c1c534
c1c534
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
c1c534
(cherry picked from commit e28ccd2643b0c4cf35c4b53876fa46dc23007426)
c1c534
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
c1c534
c1c534
https://bugzilla.redhat.com/show_bug.cgi?id=1289368
c1c534
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
c1c534
---
c1c534
 src/util/virresctrl.c | 2 --
c1c534
 1 file changed, 2 deletions(-)
c1c534
c1c534
diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c
c1c534
index 89b1382b68..684cb22fd8 100644
c1c534
--- a/src/util/virresctrl.c
c1c534
+++ b/src/util/virresctrl.c
c1c534
@@ -392,7 +392,6 @@ int
c1c534
 virResctrlGetInfo(virResctrlInfoPtr resctrl)
c1c534
 {
c1c534
     DIR *dirp = NULL;
c1c534
-    char *info_path = NULL;
c1c534
     char *endptr = NULL;
c1c534
     char *tmp_str = NULL;
c1c534
     int ret = -1;
c1c534
@@ -507,7 +506,6 @@ virResctrlGetInfo(virResctrlInfoPtr resctrl)
c1c534
     ret = 0;
c1c534
  cleanup:
c1c534
     VIR_DIR_CLOSE(dirp);
c1c534
-    VIR_FREE(info_path);
c1c534
     if (i_type)
c1c534
         VIR_FREE(i_type->cbm_mask);
c1c534
     VIR_FREE(i_type);
c1c534
-- 
c1c534
2.16.1
c1c534