qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] test-replication: fix leaks
@ 2016-11-09 10:45 Marc-André Lureau
  2016-11-09 14:22 ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Marc-André Lureau @ 2016-11-09 10:45 UTC (permalink / raw)
  To: qemu-devel; +Cc: stefanha, xiecl.fnst, Marc-André Lureau

ASAN spotted:
SUMMARY: AddressSanitizer: 301990288 byte(s) leaked in 33 allocation(s).

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 tests/test-replication.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/test-replication.c b/tests/test-replication.c
index 0997bd8..fac2da3 100644
--- a/tests/test-replication.c
+++ b/tests/test-replication.c
@@ -85,6 +85,8 @@ static void test_blk_read(BlockBackend *blk, long pattern,
     }
 
     g_free(pattern_buf);
+    g_free(cmp_buf);
+    qemu_iovec_destroy(&qiov);
 }
 
 static void test_blk_write(BlockBackend *blk, long pattern, int64_t offset,
@@ -116,6 +118,7 @@ static void test_blk_write(BlockBackend *blk, long pattern, int64_t offset,
     }
 
     g_free(pattern_buf);
+    qemu_iovec_destroy(&qiov);
 }
 
 /*
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] test-replication: fix leaks
  2016-11-09 10:45 [Qemu-devel] [PATCH] test-replication: fix leaks Marc-André Lureau
@ 2016-11-09 14:22 ` Stefan Hajnoczi
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2016-11-09 14:22 UTC (permalink / raw)
  To: Marc-André Lureau; +Cc: qemu-devel, xiecl.fnst

[-- Attachment #1: Type: text/plain, Size: 406 bytes --]

On Wed, Nov 09, 2016 at 02:45:47PM +0400, Marc-André Lureau wrote:
> ASAN spotted:
> SUMMARY: AddressSanitizer: 301990288 byte(s) leaked in 33 allocation(s).
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
>  tests/test-replication.c | 3 +++
>  1 file changed, 3 insertions(+)

Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-09 14:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-09 10:45 [Qemu-devel] [PATCH] test-replication: fix leaks Marc-André Lureau
2016-11-09 14:22 ` Stefan Hajnoczi

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).