Blame SOURCES/kvm-pr-manager-helper-fix-memory-leak-on-event.patch

383d26
From 7d3c970b0033d3bdb99e901676228bdb205e96c0 Mon Sep 17 00:00:00 2001
383d26
From: Paolo Bonzini <pbonzini@redhat.com>
383d26
Date: Fri, 6 Jul 2018 17:56:59 +0200
383d26
Subject: [PATCH 25/89] pr-manager-helper: fix memory leak on event
383d26
383d26
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
383d26
Message-id: <20180706175659.30615-10-pbonzini@redhat.com>
383d26
Patchwork-id: 81249
383d26
O-Subject: [RHEL7.6 qemu-kvm-rhev PATCH 9/9] pr-manager-helper: fix memory leak on event
383d26
Bugzilla: 1533158
383d26
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
383d26
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
383d26
RH-Acked-by: Michal Privoznik <mprivozn@redhat.com>
383d26
383d26
Reported by Coverity.
383d26
383d26
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
383d26
(cherry picked from commit ea3d77c889cfa8c450da8a716c2bfd6aaea0adb2)
383d26
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
383d26
---
383d26
 scsi/pr-manager-helper.c | 1 +
383d26
 1 file changed, 1 insertion(+)
383d26
383d26
diff --git a/scsi/pr-manager-helper.c b/scsi/pr-manager-helper.c
383d26
index 519a296..3027dde 100644
383d26
--- a/scsi/pr-manager-helper.c
383d26
+++ b/scsi/pr-manager-helper.c
383d26
@@ -46,6 +46,7 @@ static void pr_manager_send_status_changed_event(PRManagerHelper *pr_mgr)
383d26
     if (id) {
383d26
         qapi_event_send_pr_manager_status_changed(id, !!pr_mgr->ioc,
383d26
                                                   &error_abort);
383d26
+        g_free(id);
383d26
     }
383d26
 }
383d26
 
383d26
-- 
383d26
1.8.3.1
383d26