Skip to content

Commit 61d07b2

Browse files
authored
Merge pull request #1104 from Adam-/double-fclose
runtime: fix double fclose() on sqfs read error
2 parents 5ae4eae + 7952683 commit 61d07b2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/runtime.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ bool extract_appimage(const char* const appimage_path, const char* const _prefix
396396
char buf[bytes_at_a_time];
397397
if (sqfs_read_range(&fs, &inode, (sqfs_off_t) bytes_already_read, &bytes_at_a_time, buf)) {
398398
perror("sqfs_read_range error");
399-
fclose(f);
400399
rv = false;
401400
break;
402401
}

0 commit comments

Comments
 (0)