[Top][All Lists]

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

Re: [Qemu-devel] [PATCH] net/colo-compare: Fix memory free error

From: Hailiang Zhang
Subject: Re: [Qemu-devel] [PATCH] net/colo-compare: Fix memory free error
Date: Wed, 22 Feb 2017 09:47:54 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

On 2017/2/21 10:44, Zhang Chen wrote:
We use g_queue_init() to init s->conn_list, so we should use g_queue_clear()
to instead of g_queue_free().

Signed-off-by: Zhang Chen <address@hidden>

Reviewed-by: zhanghailiang <address@hidden>

  net/colo-compare.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/colo-compare.c b/net/colo-compare.c
index 162fd6a..cf8c4c9 100644
--- a/net/colo-compare.c
+++ b/net/colo-compare.c
@@ -715,7 +715,7 @@ static void colo_compare_finalize(Object *obj)

-    g_queue_free(&s->conn_list);
+    g_queue_clear(&s->conn_list);

      if (qemu_thread_is_self(&s->thread)) {
          /* compare connection */

reply via email to

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