diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2012-07-09 12:35:30 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2012-07-09 12:35:30 -0400 |
commit | ff5718f042ecccee694ae79c9386a589fd77e8ef (patch) | |
tree | 2caecba4b46e01b1dc964b62eac700219b6aa382 /src/dev/i8254xGBe.cc | |
parent | 92eaac07118a620c2c9dd48921eefcb7ca4422a8 (diff) | |
download | gem5-ff5718f042ecccee694ae79c9386a589fd77e8ef.tar.xz |
Fix: Address a few benign memory leaks
This patch is the result of static analysis identifying a number of
memory leaks. The leaks are all benign as they are a result of not
deallocating memory in the desctructor. The fix still has value as it
removes false positives in the static analysis.
Diffstat (limited to 'src/dev/i8254xGBe.cc')
-rw-r--r-- | src/dev/i8254xGBe.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dev/i8254xGBe.cc b/src/dev/i8254xGBe.cc index 29bd5adc2..1f2c92425 100644 --- a/src/dev/i8254xGBe.cc +++ b/src/dev/i8254xGBe.cc @@ -122,6 +122,11 @@ IGbE::IGbE(const Params *p) txFifo.clear(); } +IGbE::~IGbE() +{ + delete etherInt; +} + void IGbE::init() { @@ -827,6 +832,8 @@ template<class T> IGbE::DescCache<T>::~DescCache() { reset(); + delete[] fetchBuf; + delete[] wbBuf; } template<class T> |