qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] vhost-user: fix memory leak


From: linzhecheng
Subject: [Qemu-devel] [PATCH] vhost-user: fix memory leak
Date: Tue, 13 Feb 2018 10:53:06 +0800

fix memory leak

Signed-off-by: linzhecheng <address@hidden>

diff --git a/net/vhost-user.c b/net/vhost-user.c
index cb45512506..d024573e45 100644
--- a/net/vhost-user.c
+++ b/net/vhost-user.c
@@ -109,6 +109,7 @@ static int vhost_user_start(int queues, NetClientState 
*ncs[], CharBackend *be)
 err:
     if (net) {
         vhost_net_cleanup(net);
+        g_free(net);
     }
     vhost_user_stop(i, ncs);
     return -1;
-- 
2.12.2.windows.2





reply via email to

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