From d72643ce152b97c359095373df30c164b272d7a1 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 3 Sep 2023 20:12:51 +0200 Subject: coverity: fix: resource leak in error path Signed-off-by: David Oberhollenzer --- bin/rdsquashfs/src/fill_files.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bin/rdsquashfs') diff --git a/bin/rdsquashfs/src/fill_files.c b/bin/rdsquashfs/src/fill_files.c index b26041a..382d756 100644 --- a/bin/rdsquashfs/src/fill_files.c +++ b/bin/rdsquashfs/src/fill_files.c @@ -159,6 +159,7 @@ static int fill_files(sqfs_data_reader_t *data, int flags) files[i].path, &in); if (ret) { sqfs_perror(files[i].path, NULL, ret); + sqfs_drop(fp); return -1; } -- cgit v1.2.3