* [Qemu-devel] [PATCH] use qemu_free() instead of free()
@ 2010-05-13 21:14 Bruce Rogers
2010-05-14 11:44 ` Kevin Wolf
0 siblings, 1 reply; 2+ messages in thread
From: Bruce Rogers @ 2010-05-13 21:14 UTC (permalink / raw)
To: qemu-devel
There is a call to free() where qemu_free() should instead be used.
Signed-off-by: Bruce Rogers <brogers@novell.com>
diff --git a/block.c b/block.c
index 48305b7..1a9d72d 100644
--- a/block.c
+++ b/block.c
@@ -2073,7 +2073,7 @@ int bdrv_aio_multiwrite(BlockDriverState *bs, BlockRequest
*reqs, int num_reqs)
return 0;
fail:
- free(mcb);
+ qemu_free(mcb);
return -1;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] use qemu_free() instead of free()
2010-05-13 21:14 [Qemu-devel] [PATCH] use qemu_free() instead of free() Bruce Rogers
@ 2010-05-14 11:44 ` Kevin Wolf
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Wolf @ 2010-05-14 11:44 UTC (permalink / raw)
To: Bruce Rogers; +Cc: qemu-devel
Am 13.05.2010 23:14, schrieb Bruce Rogers:
> There is a call to free() where qemu_free() should instead be used.
>
> Signed-off-by: Bruce Rogers <brogers@novell.com>
>
> diff --git a/block.c b/block.c
> index 48305b7..1a9d72d 100644
> --- a/block.c
> +++ b/block.c
> @@ -2073,7 +2073,7 @@ int bdrv_aio_multiwrite(BlockDriverState *bs, BlockRequest
> *reqs, int num_reqs)
> return 0;
>
> fail:
> - free(mcb);
> + qemu_free(mcb);
> return -1;
> }
Fixed the line wrap and applied to the block branch. Thanks.
Kevin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-14 11:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-13 21:14 [Qemu-devel] [PATCH] use qemu_free() instead of free() Bruce Rogers
2010-05-14 11:44 ` Kevin Wolf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).