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

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