tar archive: fix double free (#3781)

Co-authored-by: hedger <hedger@nanode.su>
This commit is contained in:
Sergei Gavrilov 2024-07-10 20:45:52 +01:00 committed by GitHub
parent d879b254d6
commit fcf60e35a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,7 +91,6 @@ static int mtar_heatshrink_file_close(void* stream) {
compress_stream_decoder_free(hs_stream->decoder);
}
storage_file_close(hs_stream->stream);
storage_file_free(hs_stream->stream);
free(hs_stream);
}
return MTAR_ESUCCESS;