vnode/cos: fix get object handler mem

This commit is contained in:
Minglei Jin 2023-11-08 16:04:24 +08:00
parent e5bbcf76f1
commit 128353a861
1 changed files with 1 additions and 1 deletions

View File

@ -738,7 +738,7 @@ static S3Status getObjectDataCallback(int bufferSize, const char *buffer, void *
} }
*/ */
if (!cbd->buf) { if (!cbd->buf) {
cbd->buf = taosMemoryCalloc(1, bufferSize); cbd->buf = taosMemoryCalloc(1, cbd->content_length);
} }
if (cbd->buf) { if (cbd->buf) {