aboutsummaryrefslogtreecommitdiff
path: root/bin/rdsquashfs/src/fill_files.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-09-03 20:12:51 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-09-03 20:12:51 +0200
commitd72643ce152b97c359095373df30c164b272d7a1 (patch)
tree430d304db03892f0fc03cb0e4acda9345d6105bf /bin/rdsquashfs/src/fill_files.c
parent0cd1d25438f233de573cba45dd140331edef7287 (diff)
coverity: fix: resource leak in error path
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/rdsquashfs/src/fill_files.c')
-rw-r--r--bin/rdsquashfs/src/fill_files.c1
1 files changed, 1 insertions, 0 deletions
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;
}