aboutsummaryrefslogtreecommitdiff
path: root/bin/sqfsdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sqfsdiff')
-rw-r--r--bin/sqfsdiff/extract.c4
-rw-r--r--bin/sqfsdiff/sqfsdiff.c20
2 files changed, 12 insertions, 12 deletions
diff --git a/bin/sqfsdiff/extract.c b/bin/sqfsdiff/extract.c
index 0c68918..f2072d4 100644
--- a/bin/sqfsdiff/extract.c
+++ b/bin/sqfsdiff/extract.c
@@ -29,12 +29,12 @@ static int extract(sqfs_data_reader_t *data, const sqfs_inode_generic_t *inode,
}
if (sqfs_data_reader_dump(path, data, inode, fp, block_size)) {
- sqfs_destroy(fp);
+ sqfs_drop(fp);
return -1;
}
ostream_flush(fp);
- sqfs_destroy(fp);
+ sqfs_drop(fp);
return 0;
}
diff --git a/bin/sqfsdiff/sqfsdiff.c b/bin/sqfsdiff/sqfsdiff.c
index 0673f8d..9d29332 100644
--- a/bin/sqfsdiff/sqfsdiff.c
+++ b/bin/sqfsdiff/sqfsdiff.c
@@ -97,28 +97,28 @@ static int open_sfqs(sqfs_state_t *state, const char *path)
return 0;
fail_data:
- sqfs_destroy(state->data);
+ sqfs_drop(state->data);
fail_tree:
sqfs_dir_tree_destroy(state->root);
fail_dr:
- sqfs_destroy(state->dr);
+ sqfs_drop(state->dr);
fail_id:
- sqfs_destroy(state->idtbl);
+ sqfs_drop(state->idtbl);
fail_cmp:
- sqfs_destroy(state->cmp);
+ sqfs_drop(state->cmp);
fail_file:
- sqfs_destroy(state->file);
+ sqfs_drop(state->file);
return -1;
}
static void close_sfqs(sqfs_state_t *state)
{
- sqfs_destroy(state->data);
+ sqfs_drop(state->data);
sqfs_dir_tree_destroy(state->root);
- sqfs_destroy(state->dr);
- sqfs_destroy(state->idtbl);
- sqfs_destroy(state->cmp);
- sqfs_destroy(state->file);
+ sqfs_drop(state->dr);
+ sqfs_drop(state->idtbl);
+ sqfs_drop(state->cmp);
+ sqfs_drop(state->file);
}
int main(int argc, char **argv)