提交 9fa4bed8 authored 作者: William King's avatar William King

FS-5395: False alarm on a reported valgrind memory leak. The io_private is…

FS-5395: False alarm on a reported valgrind memory leak. The io_private is alloc'd from a memory pool which valgrind sucks at tracking. No need to free this, because it'll get cleared when the memory pool on the rsession is destroyed.
上级 b3117e8f
......@@ -183,11 +183,6 @@ static switch_status_t rtmp_tcp_close(rtmp_session_t *rsession)
switch_buffer_destroy(&(io_pvt->sendq));
}
if ( rsession->io_private ) {
free(rsession->io_private);
rsession->io_private = NULL;
}
return SWITCH_STATUS_SUCCESS;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论