We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8f106b commit a87da6bCopy full SHA for a87da6b
src/libappimage/core/impl/TraversalType2.cpp
@@ -8,6 +8,7 @@
8
extern "C" {
9
#include <squashfuse.h>
10
#include <squashfs_fs.h>
11
+#include <squashfuse/util.h>
12
}
13
14
// system
@@ -52,15 +53,21 @@ class TraversalType2::Priv {
52
53
rootInodeId = sqfs_inode_root(&fs);
54
err = sqfs_traverse_open(&trv, &fs, rootInodeId);
55
if (err != SQFS_OK) {
56
+ sqfs_fd_t fd = fs.fd;
57
sqfs_destroy(&fs);
58
+ sqfs_fd_close(fd);
59
throw IOError("sqfs_traverse_open error");
60
61
62
63
virtual ~Priv() {
64
sqfs_traverse_close(&trv);
65
66
67
+
68
69
70
71
72
73
bool isCompleted() const {
0 commit comments