From b1b1dad31f3a092e046b09795f4476705c4e564e Mon Sep 17 00:00:00 2001 From: Alex Jia Date: Wed, 28 Sep 2011 14:57:01 +0800 Subject: fix memory leak in aio_write_f Haven't released memory of 'ctx' before return. Signed-off-by: Alex Jia Signed-off-by: Kevin Wolf --- qemu-io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu-io.c b/qemu-io.c index e91af37..c45a413 100644 --- a/qemu-io.c +++ b/qemu-io.c @@ -1248,6 +1248,7 @@ static int aio_write_f(int argc, char **argv) case 'P': pattern = parse_pattern(optarg); if (pattern < 0) { + free(ctx); return 0; } break; -- cgit v1.1