summaryrefslogtreecommitdiffstats
path: root/scsi
diff options
context:
space:
mode:
authorPaolo Bonzini2018-07-04 13:58:20 +0200
committerPaolo Bonzini2018-07-06 18:39:19 +0200
commitea3d77c889cfa8c450da8a716c2bfd6aaea0adb2 (patch)
treea3d13eff277ae5bd9e70fb3997ad7add626f41ab /scsi
parentqemu-char: check errno together with ret < 0 (diff)
downloadqemu-ea3d77c889cfa8c450da8a716c2bfd6aaea0adb2.tar.gz
qemu-ea3d77c889cfa8c450da8a716c2bfd6aaea0adb2.tar.xz
qemu-ea3d77c889cfa8c450da8a716c2bfd6aaea0adb2.zip
pr-manager-helper: fix memory leak on event
Reported by Coverity. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scsi')
-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);
}
}