From 03f7217aff88a4201f52422ccff67588ebedacde Mon Sep 17 00:00:00 2001
Message-Id: <03f7217aff88a4201f52422ccff67588ebedacde@dist-git>
From: Kothapally Madhu Pavan <kmp@linux.vnet.ibm.com>
Date: Mon, 9 Oct 2017 11:56:48 +0200
Subject: [PATCH] util: Free a pointer in virPolkitCheckAuth
Free DBusMessage pointer in virPolkitCheckAuth
Signed-off-by: Kothapally Madhu Pavan <kmp@linux.vnet.ibm.com>
(cherry picked from commit 65a983eca1f44eaf2a209ae232f72aa659184945)
https://bugzilla.redhat.com/show_bug.cgi?id=1499200
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
src/util/virpolkit.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/util/virpolkit.c b/src/util/virpolkit.c
index c735ca9b1f..4559431baf 100644
--- a/src/util/virpolkit.c
+++ b/src/util/virpolkit.c
@@ -138,6 +138,7 @@ int virPolkitCheckAuth(const char *actionid,
cleanup:
virStringListFreeCount(retdetails, nretdetails);
+ virDBusMessageUnref(reply);
return ret;
}
--
2.14.2