aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-24 03:04:46 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-24 03:04:46 +0200
commit94b507f2c1c7244493473a0a6673d726a6fe9cf5 (patch)
tree6e28faa65f918803809ff87f8b4caf758f8b14c4 /lib
parentc56c830ae96ed000c999fb93c23bbaad0303acf9 (diff)
Fix trivial use-after-free bug
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/sqfshelper/data_reader_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqfshelper/data_reader_dump.c b/lib/sqfshelper/data_reader_dump.c
index a9b6bb9..a6c7aa2 100644
--- a/lib/sqfshelper/data_reader_dump.c
+++ b/lib/sqfshelper/data_reader_dump.c
@@ -57,8 +57,8 @@ int sqfs_data_reader_dump(sqfs_data_reader_t *data,
return -1;
}
- free(blk);
filesz -= blk->size;
+ free(blk);
}
}