tfe stream destroy未释放plugin ctx;cJSON结构体错误的使用cjsonfree释放,正确做法是cjson delete。
This commit is contained in:
@@ -841,12 +841,12 @@ void tfe_stream_destory(struct tfe_stream_private * stream)
|
||||
|
||||
if (stream->head.addr)
|
||||
{
|
||||
free(stream->head.addr);
|
||||
FREE(&(stream->head.addr));
|
||||
}
|
||||
|
||||
if (stream->str_stream_addr)
|
||||
{
|
||||
free(stream->str_stream_addr);
|
||||
FREE(&(stream->str_stream_addr));
|
||||
}
|
||||
|
||||
if (__is_ssl(stream) && stream->ssl_upstream)
|
||||
@@ -890,9 +890,9 @@ void tfe_stream_destory(struct tfe_stream_private * stream)
|
||||
{
|
||||
future_destroy(stream->future_upstream_create);
|
||||
}
|
||||
|
||||
FREE(&(stream->plugin_ctxs));
|
||||
stream->proxy_ref = NULL;
|
||||
free(stream);
|
||||
FREE(&(stream));
|
||||
thread->load--;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user