qemu-io: Fix memory leak in 'aio_write -z'
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
f249924e96
commit
0e01b76e7c
@ -1699,6 +1699,7 @@ static int aio_write_f(BlockBackend *blk, int argc, char **argv)
|
|||||||
int64_t count = cvtnum(argv[optind]);
|
int64_t count = cvtnum(argv[optind]);
|
||||||
if (count < 0) {
|
if (count < 0) {
|
||||||
print_cvtnum_err(count, argv[optind]);
|
print_cvtnum_err(count, argv[optind]);
|
||||||
|
g_free(ctx);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user