fix crash while error reading from archive

This commit is contained in:
Chee Yee
2024-06-27 11:10:56 -07:00
parent 01f568feac
commit e0c72c85e5
-8
View File
@@ -667,10 +667,6 @@ namespace ZipUtil
if (ret < ARCHIVE_OK)
{
sprintf(status_message, "%s", "archive_read_next_header failed");
if (client_data != nullptr)
{
free(client_data);
}
archive_read_free(a);
return nullptr;
}
@@ -745,10 +741,6 @@ namespace ZipUtil
if (ret < ARCHIVE_OK)
{
sprintf(status_message, "%s", "archive_read_next_header failed");
if (client_data != nullptr)
{
free(client_data);
}
archive_read_free(a);
return nullptr;
}