qcow2: fix memory leak in qcow2_read_extensions
commit38f034e728e5a60c27c3ac43ed2bc4ae7a6659b0
authorlu zhipeng <luzhipeng@cestc.cn>
Wed, 21 Sep 2022 14:45:15 +0000 (21 22:45 +0800)
committerKevin Wolf <kwolf@redhat.com>
Fri, 30 Sep 2022 16:02:30 +0000 (30 18:02 +0200)
treea03d0f59823a6abe03ce9765a5cfb8e7d975e1e0
parentc8de6ec63d766ca1998c5af468483ce912fdc0c2
qcow2: fix memory leak in qcow2_read_extensions

Free feature_table if it is failed in bdrv_pread.

Signed-off-by: lu zhipeng <luzhipeng@cestc.cn>
Message-Id: <20220921144515.1166-1-luzhipeng@cestc.cn>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c