Skip to content
Commit 059ea331 authored by Li Zefan's avatar Li Zefan Committed by Jens Axboe
Browse files

block: fix memory leak in bio_clone()



If bio_integrity_clone() fails, bio_clone() returns NULL without freeing
the newly allocated bio.

Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 87092698
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment