fix segfault when peer owner attempts to use functional port
--HG-- extra : convert_revision : 3702b4bd038a59bff823c3b428fdfbaabc9715df
This commit is contained in:
@@ -103,7 +103,7 @@ void
|
||||
O3ThreadContext<Impl>::delVirtPort(VirtualPort *vp)
|
||||
{
|
||||
if (vp != thread->getVirtPort()) {
|
||||
delete vp->getPeer();
|
||||
vp->removeConn();
|
||||
delete vp;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -748,7 +748,7 @@ template <class Impl>
|
||||
void
|
||||
OzoneCPU<Impl>::OzoneTC::delVirtPort(VirtualPort *vp)
|
||||
{
|
||||
delete vp->getPeer();
|
||||
vp->removeConn();
|
||||
delete vp;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -305,7 +305,7 @@ void
|
||||
SimpleThread::delVirtPort(VirtualPort *vp)
|
||||
{
|
||||
if (vp != virtPort) {
|
||||
delete vp->getPeer();
|
||||
vp->removeConn();
|
||||
delete vp;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user