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/gensquashfs/src/sort_by_file.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bin/gensquashfs/src/sort_by_file.c') 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 ` ` " "after flag list.\n", filename, line_no); + free(sep); return -1; } -- cgit v1.2.3