]> git.proxmox.com Git - qemu.git/commit
virtio-net: fix the memory leak in rxfilter_notify()
authorAmos Kong <akong@redhat.com>
Mon, 18 Nov 2013 15:32:17 +0000 (23:32 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 19 Nov 2013 09:26:55 +0000 (10:26 +0100)
commit96e35046e4a97df5b4e1e24e217eb1e1701c7c71
tree96929e69b5d58b32a0c01f9fb42ac3baaaf6c6dc
parent8b7acc79b9adb4dda6cc867b90e3a1e873f4f7e8
virtio-net: fix the memory leak in rxfilter_notify()

object_get_canonical_path() returns a gchar*, it should be freed by the
caller.

Signed-off-by: Amos Kong <akong@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Vlad Yasevich <vyasevic@redhat.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/net/virtio-net.c