提交 b1b1dad3 编写于 作者: A Alex Jia 提交者: Kevin Wolf

fix memory leak in aio_write_f

Haven't released memory of 'ctx' before return.
Signed-off-by: NAlex Jia <ajia@redhat.com>
Signed-off-by: NKevin Wolf <kwolf@redhat.com>
上级 35246a68
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册