diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-08-02 15:52:45 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-08-02 15:52:45 +0200 |
commit | f619c555206aa45d1d74fa7f8480145326f11039 (patch) | |
tree | bf023537864e1829742a1388c2cf00839a97c3d1 | |
parent | 0a40372096c624e5fceebe9cb90305946505dd68 (diff) |
Fix explicit NULL dereference in deserialize_fstree failure path
If we failed to create the root node, we don't need to cleanup the
fstree_t which would attempt to recursively cleanup the root node.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r-- | lib/sqfs/deserialize_fstree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqfs/deserialize_fstree.c b/lib/sqfs/deserialize_fstree.c index c02212b..f758a61 100644 --- a/lib/sqfs/deserialize_fstree.c +++ b/lib/sqfs/deserialize_fstree.c @@ -230,7 +230,7 @@ int deserialize_fstree(fstree_t *out, sqfs_super_t *super, compressor_t *cmp, if (out->root == NULL) { free(root); - goto fail_fs; + goto out_xr; } if (flags & RDTREE_READ_XATTR) { |