]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 9 Dec 2013 17:40:30 +0000 (11:40 -0600)
commit817a872cc6e52abe304ec8c0a94c69d4f2b450ec
tree806a7c9d91a765c655b8d5ac04e38f6438d97fa8
parent37da395651cd1279a8f111b5c8fc31d6f547f67f
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>
(cherry picked from commit 96e35046e4a97df5b4e1e24e217eb1e1701c7c71)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/net/virtio-net.c