aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2016-05-09 12:03:04 +0200
committerKevin Wolf <kwolf@redhat.com>2016-05-12 15:22:08 +0200
commit0e01b76e7cc43068f6b8cc05297f61539ccd5279 (patch)
treeb6a3230d7c009ebbec3733ccc5b787990df60c7d
parentf249924e96861f1dd7c5f79e62e3fb96c78e255d (diff)
qemu-io: Fix memory leak in 'aio_write -z'
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
-rw-r--r--qemu-io-cmds.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-io-cmds.c b/qemu-io-cmds.c
index e34f777118..41580b5247 100644
--- a/qemu-io-cmds.c
+++ b/qemu-io-cmds.c
@@ -1699,6 +1699,7 @@ static int aio_write_f(BlockBackend *blk, int argc, char **argv)
int64_t count = cvtnum(argv[optind]);
if (count < 0) {
print_cvtnum_err(count, argv[optind]);
+ g_free(ctx);
return 0;
}