]> git.proxmox.com Git - mirror_qemu.git/commit
9pfs: local: Fix possible memory leak in local_link()
authorJiajun Chen <chenjiajun8@huawei.com>
Mon, 20 Jan 2020 14:11:39 +0000 (15:11 +0100)
committerGreg Kurz <groug@kaod.org>
Mon, 20 Jan 2020 14:11:39 +0000 (15:11 +0100)
commit841b8d099c462cd4282c4ced8c2a6512899fd8d9
tree4435050a1441de6860a101844d5501223f760239
parent43d1455cf84283466e5c22a217db5ef4b8197b14
9pfs: local: Fix possible memory leak in local_link()

There is a possible memory leak while local_link return -1 without free
odirpath and oname.

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Jaijun Chen <chenjiajun8@huawei.com>
Signed-off-by: Xiang Zheng <zhengxiang9@huawei.com>
Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Greg Kurz <groug@kaod.org>
hw/9pfs/9p-local.c