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: NEuler Robot <euler.robot@huawei.com> Signed-off-by: NJaijun Chen <chenjiajun8@huawei.com> Signed-off-by: NXiang Zheng <zhengxiang9@huawei.com> Reviewed-by: NChristian Schoenebeck <qemu_oss@crudebyte.com> Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: NGreg Kurz <groug@kaod.org> (cherry picked from commit 841b8d09) Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
Showing
想要评论请 注册 或 登录