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

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