All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] rocker: Fix memory leak reported by coverity
@ 2015-06-23  1:31 zhanghailiang
  2015-06-23  5:23 ` Scott Feldman
  2015-06-23  6:06 ` Scott Feldman
  0 siblings, 2 replies; 9+ messages in thread
From: zhanghailiang @ 2015-06-23  1:31 UTC (permalink / raw)
  To: qemu-trivial; +Cc: jiri, sfeldma, zhanghailiang, pbonzini

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
---
 hw/net/rocker/rocker.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/net/rocker/rocker.c b/hw/net/rocker/rocker.c
index 4d25842..d06116e 100644
--- a/hw/net/rocker/rocker.c
+++ b/hw/net/rocker/rocker.c
@@ -103,6 +103,7 @@ RockerSwitch *qmp_query_rocker(const char *name, Error **errp)
     if (!r) {
         error_set(errp, ERROR_CLASS_GENERIC_ERROR,
                   "rocker %s not found", name);
+        g_free(rocker);
         return NULL;
     }
 
-- 
1.7.12.4




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

end of thread, other threads:[~2015-07-07  1:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-23  1:31 [Qemu-trivial] [PATCH] rocker: Fix memory leak reported by coverity zhanghailiang
2015-06-23  5:23 ` Scott Feldman
2015-06-23  5:46   ` zhanghailiang
2015-06-23  6:06     ` Scott Feldman
2015-06-23  8:01   ` Paolo Bonzini
2015-06-23  6:06 ` Scott Feldman
2015-07-07  1:20   ` zhanghailiang
2015-07-07  1:33     ` Scott Feldman
2015-07-07  1:48       ` zhanghailiang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.