Fix double free in HTTP message genartion code.

parent d52cb35a
......@@ -1014,10 +1014,10 @@ bool PayloadHTTPOut::FlushBody(PayloadStreamInterface& stream) {
};
};
delete[] tbuf;
tbuf = NULL;
if(use_chunked_transfer_) {
if(!stream.Put("0\r\n\r\n")) {
error_ = IString("Failed to write body to output stream").str();
delete[] tbuf;
return false;
};
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment