iolog.c: Fix memory leak for blkparse case
authorLukas Straub <lukasstraub2@web.de>
Wed, 19 Jan 2022 21:14:40 +0000 (21:14 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jan 2022 18:40:42 +0000 (11:40 -0700)
commit3a3e5c6e7606e727df1788a73d04db56d77ba00d
treed910a2cd24fc1d96ff64f8cb9e9326fda5c66bcf
parent661592d44383069fe949ec68154c2d8079cf02a0
iolog.c: Fix memory leak for blkparse case

init_blkparse_read (load_blkparse previously) didn't free the
filename. Fix this by freeing it in the init_iolog function and
handling it for both init_iolog_read and init_blkparse_read.

Signed-off-by: Lukas Straub <lukasstraub2@web.de>
Link: https://lore.kernel.org/r/e4acf183ab789b7284bfa96089ebe1256e15f98d.1642626314.git.lukasstraub2@web.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
iolog.c