fix the DumpCompressedTrace bug

This commit is contained in:
chuxuezhe11
2021-07-23 02:59:01 +00:00
committed by Gitee
parent 35df4df153
commit b832501d2a
+2 -2
View File
@@ -549,8 +549,8 @@ static void DumpCompressedTrace(int traceFd, int outFd)
return;
}
int have;
unique_ptr<uint8_t> in = std::make_unique<uint8_t>(CHUNK_SIZE);
unique_ptr<uint8_t> out = std::make_unique<uint8_t>(CHUNK_SIZE);
std::unique_ptr<uint8_t[]> in = std::make_unique<uint8_t[]>(CHUNK_SIZE);
std::unique_ptr<uint8_t[]> out = std::make_unique<uint8_t[]>(CHUNK_SIZE);
int flush = Z_NO_FLUSH;
if (!in || !out) {
fprintf(stderr, "Error: couldn't allocate buffers.\n");