File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ int lzma_decompress_to_file(const char *input, int output_fd)
69
69
70
70
if (ferror (infile )) {
71
71
pr_err ("lzma: read error: %s\n" , strerror (errno ));
72
- goto err_fclose ;
72
+ goto err_lzma_end ;
73
73
}
74
74
75
75
if (feof (infile ))
@@ -83,7 +83,7 @@ int lzma_decompress_to_file(const char *input, int output_fd)
83
83
84
84
if (writen (output_fd , buf_out , write_size ) != write_size ) {
85
85
pr_err ("lzma: write error: %s\n" , strerror (errno ));
86
- goto err_fclose ;
86
+ goto err_lzma_end ;
87
87
}
88
88
89
89
strm .next_out = buf_out ;
@@ -95,11 +95,13 @@ int lzma_decompress_to_file(const char *input, int output_fd)
95
95
break ;
96
96
97
97
pr_err ("lzma: failed %s\n" , lzma_strerror (ret ));
98
- goto err_fclose ;
98
+ goto err_lzma_end ;
99
99
}
100
100
}
101
101
102
102
err = 0 ;
103
+ err_lzma_end :
104
+ lzma_end (& strm );
103
105
err_fclose :
104
106
fclose (infile );
105
107
return err ;
You can’t perform that action at this time.
0 commit comments