From 0e01b76e7cc43068f6b8cc05297f61539ccd5279 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Mon, 9 May 2016 12:03:04 +0200 Subject: [PATCH] qemu-io: Fix memory leak in 'aio_write -z' Signed-off-by: Kevin Wolf Reviewed-by: Eric Blake --- qemu-io-cmds.c | 1 + 1 file changed, 1 insertion(+) 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; }