diff options
author | Steve Reinhardt <stever@gmail.com> | 2008-06-28 13:19:38 -0400 |
---|---|---|
committer | Steve Reinhardt <stever@gmail.com> | 2008-06-28 13:19:38 -0400 |
commit | caaac16803db6eaf3ee20b5d062ec2211fe6584d (patch) | |
tree | d3664f74378429cc389c6e166aebaca7fbcd6963 /src/cpu/thread_state.cc | |
parent | 6b45238316052f458ba9ebc9d24a91cfa9e41cf1 (diff) | |
download | gem5-caaac16803db6eaf3ee20b5d062ec2211fe6584d.tar.xz |
Backed out changeset 94a7bb476fca: caused memory leak.
Diffstat (limited to 'src/cpu/thread_state.cc')
-rw-r--r-- | src/cpu/thread_state.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/thread_state.cc b/src/cpu/thread_state.cc index 56839ca7f..bcfc9c924 100644 --- a/src/cpu/thread_state.cc +++ b/src/cpu/thread_state.cc @@ -126,7 +126,7 @@ ThreadState::connectPhysPort() // already existed. Fix this memory leak once the bus port IDs // for functional ports is resolved. if (physPort) - physPort->disconnectFromPeer(); + physPort->removeConn(); else physPort = new FunctionalPort(csprintf("%s-%d-funcport", baseCpu->name(), tid)); @@ -140,7 +140,7 @@ ThreadState::connectVirtPort() // already existed. Fix this memory leak once the bus port IDs // for functional ports is resolved. if (virtPort) - virtPort->disconnectFromPeer(); + virtPort->removeConn(); else virtPort = new VirtualPort(csprintf("%s-%d-vport", baseCpu->name(), tid)); |