blockdev: Fix a memleak in drive_backup_prepare()
commit94237657af9ac7af6bc9fa0c5d9f0af1a39adb45
authorPan Nengyuan <pannengyuan@huawei.com>
Fri, 23 Oct 2020 06:12:17 +0000 (23 14:12 +0800)
committerLaurent Vivier <laurent@vivier.eu>
Sun, 13 Dec 2020 22:56:16 +0000 (13 23:56 +0100)
tree1c3687de815a8a806d4fdeff3a79520c5d44e619
parentcb8d0851f1c00daafd736757a22f4820ec081b68
blockdev: Fix a memleak in drive_backup_prepare()

'local_err' seems forgot to propagate in error path, it'll cause
a memleak. Fix it.

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
Message-Id: <20201023061218.2080844-7-kuhn.chenqun@huawei.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
blockdev.c