vnode/cos: fix get object handler mem
This commit is contained in:
parent
e5bbcf76f1
commit
128353a861
|
@ -738,7 +738,7 @@ static S3Status getObjectDataCallback(int bufferSize, const char *buffer, void *
|
|||
}
|
||||
*/
|
||||
if (!cbd->buf) {
|
||||
cbd->buf = taosMemoryCalloc(1, bufferSize);
|
||||
cbd->buf = taosMemoryCalloc(1, cbd->content_length);
|
||||
}
|
||||
|
||||
if (cbd->buf) {
|
||||
|
|
Loading…
Reference in New Issue