diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-27 23:41:01 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-28 00:06:07 +0200 |
commit | d0cfad79d547d8f72feebbbc522456cc156da4ca (patch) | |
tree | 2ae586872485b9aa7ae3773b77c5f8a64e084948 | |
parent | 5d0a3f4599e33f32239aa1c9ad5d2741efed653f (diff) |
Fix memory leak in meta reader read inode function
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r-- | lib/sqfs/read_inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |