diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sqfs/id_table_read.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/sqfs/id_table_read.c b/lib/sqfs/id_table_read.c index bed0cf4..0110082 100644 --- a/lib/sqfs/id_table_read.c +++ b/lib/sqfs/id_table_read.c @@ -28,10 +28,8 @@ int id_table_read(id_table_t *tbl, int fd, sqfs_super_t *super, tbl->max_ids = super->id_count; tbl->ids = sqfs_read_table(fd, cmp, tbl->num_ids * sizeof(uint32_t), super->id_table_start); - if (tbl->ids == NULL) { - free(tbl); + if (tbl->ids == NULL) return -1; - } for (i = 0; i < tbl->num_ids; ++i) tbl->ids[i] = le32toh(tbl->ids[i]); |