diff options
author | Li Zhijian <lizhijian@cn.fujitsu.com> | 2015-12-23 15:43:18 +0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2016-01-11 11:01:34 +0800 |
commit | 671f66f87fbf6cc6a3879f3055f16347b1db91e9 (patch) | |
tree | 588e27905c909a461a906c243a994f1103ba41ce /net | |
parent | b50c7d452f5aef52cc9e7461f215cab87c3f3b03 (diff) |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/filter.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/filter.c b/net/filter.c index 1365bad026..f777ba2899 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) |