diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-11-13 10:41:02 -0500 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2020-11-17 12:26:48 +0100 |
commit | bd89f93603f4e588e80f2e622118bf4131f30865 (patch) | |
tree | 5d11efd46c00ded5dec890ebdb663b2dea3fbd18 /block/io_uring.c | |
parent | ece4fa9152ea37c7ebd158af330e3b20e33cf385 (diff) | |
download | qemu-bd89f93603f4e588e80f2e622118bf4131f30865.zip |
io_uring: do not use pointer after free
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>
Diffstat (limited to 'block/io_uring.c')
-rw-r--r-- | block/io_uring.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { io_uring_queue_exit(&s->ring); - g_free(s); trace_luring_cleanup_state(s); + g_free(s); } |