diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/gensquashfs/src/sort_by_file.c | 1 | ||||
-rw-r--r-- | bin/rdsquashfs/src/fill_files.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/bin/gensquashfs/src/sort_by_file.c b/bin/gensquashfs/src/sort_by_file.c index 1ca5aa7..c47d217 100644 --- a/bin/gensquashfs/src/sort_by_file.c +++ b/bin/gensquashfs/src/sort_by_file.c @@ -138,6 +138,7 @@ static int decode_flags(const char *filename, size_t line_no, bool *do_glob, if (!isspace(*end)) { fprintf(stderr, "%s: " PRI_SZ ": Expected `<space> <filename>` " "after flag list.\n", filename, line_no); + free(sep); return -1; } 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; } |