aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2018-07-04 13:58:20 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2018-07-06 18:39:19 +0200
commitea3d77c889cfa8c450da8a716c2bfd6aaea0adb2 (patch)
treea3d13eff277ae5bd9e70fb3997ad7add626f41ab
parent81e34930ce2b605ce9dbb54a7b846379cbb1b811 (diff)
pr-manager-helper: fix memory leak on event
Reported by Coverity. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--scsi/pr-manager-helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scsi/pr-manager-helper.c b/scsi/pr-manager-helper.c
index 519a296905..3027dde60d 100644
--- a/scsi/pr-manager-helper.c
+++ b/scsi/pr-manager-helper.c
@@ -46,6 +46,7 @@ static void pr_manager_send_status_changed_event(PRManagerHelper *pr_mgr)
if (id) {
qapi_event_send_pr_manager_status_changed(id, !!pr_mgr->ioc,
&error_abort);
+ g_free(id);
}
}