qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 5/7] libqos: Change free function called in mall


From: John Snow
Subject: Re: [Qemu-devel] [PATCH 5/7] libqos: Change free function called in malloc
Date: Tue, 29 Jul 2014 16:47:50 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0


On 07/24/2014 02:31 PM, Marc Marí wrote:
Signed-off-by: Marc Marí <address@hidden>
---
  tests/libqos/malloc.h |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/libqos/malloc.h b/tests/libqos/malloc.h
index 46f6000..5565381 100644
--- a/tests/libqos/malloc.h
+++ b/tests/libqos/malloc.h
@@ -32,7 +32,7 @@ static inline uint64_t guest_alloc(QGuestAllocator 
*allocator, size_t size)
static inline void guest_free(QGuestAllocator *allocator, uint64_t addr)
  {
-    allocator->alloc(allocator, addr);
+    allocator->free(allocator, addr);
  }
#endif
Imagine my surprise when I noticed the allocator was summoning up millions of bytes. "Oh good!"

Reviewed-by: John Snow <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]