aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Zhijian <lizhijian@cn.fujitsu.com>2015-12-23 15:43:18 +0800
committerJason Wang <jasowang@redhat.com>2016-01-11 11:01:34 +0800
commit671f66f87fbf6cc6a3879f3055f16347b1db91e9 (patch)
tree588e27905c909a461a906c243a994f1103ba41ce
parentb50c7d452f5aef52cc9e7461f215cab87c3f3b03 (diff)
downloadqemu-671f66f87fbf6cc6a3879f3055f16347b1db91e9.zip
qemu-671f66f87fbf6cc6a3879f3055f16347b1db91e9.tar.gz
qemu-671f66f87fbf6cc6a3879f3055f16347b1db91e9.tar.bz2
net/filter: fix nf->netdev_id leak
Cc: Jason Wang <jasowang@redhat.com> Cc: qemu-stable@nongnu.org Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
-rw-r--r--net/filter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/filter.c b/net/filter.c
index 1365bad..f777ba2 100644
--- a/net/filter.c
+++ b/net/filter.c
@@ -204,6 +204,7 @@ static void netfilter_finalize(Object *obj)
if (nf->netdev && !QTAILQ_EMPTY(&nf->netdev->filters)) {
QTAILQ_REMOVE(&nf->netdev->filters, nf, next);
}
+ g_free(nf->netdev_id);
}
static void netfilter_class_init(ObjectClass *oc, void *data)