From ea3d77c889cfa8c450da8a716c2bfd6aaea0adb2 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 4 Jul 2018 13:58:20 +0200 Subject: [PATCH] pr-manager-helper: fix memory leak on event Reported by Coverity. Signed-off-by: Paolo Bonzini --- scsi/pr-manager-helper.c | 1 + 1 file changed, 1 insertion(+) 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); } }