diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-10-06 19:25:12 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-10-06 19:25:12 +0200 |
commit | 7fb91aa5872a79ab94a9adae6ca72f1b1d0f8e36 (patch) | |
tree | e5091822a0b5a3b4a585c5ba19f99853f23b003f /lib/sqfs/xattr_writer.c | |
parent | 41ddda0c732d916a6962c54a3a974a8b753f194b (diff) |
Fix resource leaks reported by coverity
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/xattr_writer.c')
-rw-r--r-- | lib/sqfs/xattr_writer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqfs/xattr_writer.c b/lib/sqfs/xattr_writer.c index 25fee80..22d4639 100644 --- a/lib/sqfs/xattr_writer.c +++ b/lib/sqfs/xattr_writer.c @@ -359,6 +359,7 @@ static sqfs_s32 write_value(sqfs_meta_writer_t *mw, const char *value_str, if (err) goto fail; + free(value); return sizeof(vent) + size; fail: free(value); |