sim-card
/
qemu
Archived
10
0
Fork 0

fix memory leak in aio_write_f

Haven't released memory of 'ctx' before return.

Signed-off-by: Alex Jia <ajia@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
Alex Jia 2011-09-28 14:57:01 +08:00 committed by Kevin Wolf
parent 35246a6825
commit b1b1dad31f
1 changed files with 1 additions and 0 deletions

View File

@ -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;