提交 b62db212 编写于 作者: T thartmann

8226879: Memory leak in Type::hashcons

Summary: Call delete on xdual type.
Reviewed-by: kvn
上级 08d45826
......@@ -718,8 +718,11 @@ const Type *Type::hashcons(void) {
// Since we just discovered a new Type, compute its dual right now.
assert( !_dual, "" ); // No dual yet
_dual = xdual(); // Compute the dual
if( cmp(this,_dual)==0 ) { // Handle self-symmetric
_dual = this;
if (cmp(this, _dual) == 0) { // Handle self-symmetric
if (_dual != this) {
delete _dual;
_dual = this;
}
return this;
}
assert( !_dual->_dual, "" ); // No reverse dual yet
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册