From d0cfad79d547d8f72feebbbc522456cc156da4ca Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 27 Sep 2019 23:41:01 +0200 Subject: Fix memory leak in meta reader read inode function Signed-off-by: David Oberhollenzer --- lib/sqfs/read_inode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqfs') diff --git a/lib/sqfs/read_inode.c b/lib/sqfs/read_inode.c index 51662eb..2887959 100644 --- a/lib/sqfs/read_inode.c +++ b/lib/sqfs/read_inode.c @@ -338,7 +338,8 @@ int sqfs_meta_reader_read_inode(sqfs_meta_reader_t *ir, SWAB32(out->data.ipc_ext.xattr_idx); break; default: - return SQFS_ERROR_UNSUPPORTED; + err = SQFS_ERROR_UNSUPPORTED; + goto fail_free; } *result = out; -- cgit v1.2.3