diff mbox series

[PULL,4/7] io_uring: do not use pointer after free

Message ID 20201117121558.249585-5-kwolf@redhat.com (mailing list archive)
State New, archived
Headers show
Series [PULL,1/7] char-stdio: Fix QMP default for 'signal' | expand

Commit Message

Kevin Wolf Nov. 17, 2020, 12:15 p.m. UTC
From: Paolo Bonzini <pbonzini@redhat.com>

Even though only the pointer value is only printed, it is untidy
and Coverity complains.

Cc: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20201113154102.1460459-1-pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
 block/io_uring.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/block/io_uring.c b/block/io_uring.c
index 037af09471..00a3ee9fb8 100644
--- a/block/io_uring.c
+++ b/block/io_uring.c
@@ -425,6 +425,6 @@  LuringState *luring_init(Error **errp)
 void luring_cleanup(LuringState *s)
-    g_free(s);
+    g_free(s);