Skip to contentSkip to conversation

use qemu_free() instead of free()

PATCH In review Bruce Rogers 2 participants 2 messages May 13, 2010 – May 14, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 use qemu_free() instead of free()

There is a call to free() where qemu_free() should instead be used.

block.c +1 -1
index 48305b7..1a9d72d 100644
@@ -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;
 }
#1 lore raw

Am 13.05.2010 23:14, schrieb Bruce Rogers:

Quoted 9 lines

There is a call to free() where qemu_free() should instead be used.

block.c +0 -0
index 48305b7..1a9d72d 100644

block.c int bdrv_aio_multiwrite(BlockDriverState *bs, BlockRequest · line 2079

Quoted 8 lines
block.c +1 -1
@@ -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