mem-cache: Fix destructor of `BasePrefetcher::PrefetchInfo`.
authorIsaac Sánchez Barrera <isaac.sanchez@bsc.es>
Fri, 15 Nov 2019 14:55:42 +0000 (15:55 +0100)
committerIsaac Sánchez Barrera <isaac.sanchez@bsc.es>
Mon, 18 Nov 2019 11:10:21 +0000 (11:10 +0000)
commitccb3c75fabb36f293793a65d2b8fe05fc899656a
tree70a5b0ab70374ad55ae3ffe79824b36ff665a3a8
parent2dd1842a67fe75c8705c1b9136f9d91defdc24cb
mem-cache: Fix destructor of `BasePrefetcher::PrefetchInfo`.

The destructor of `BasePrefetcher::PrefetchInfo` was calling `delete` for a
dynamically-allocated array. Changed to `delete[]` to remove potential undefined
behaviour.

Change-Id: I6f531bfb6fb7108f1d3e743ae0384d80173e15ef
Signed-off-by: Isaac Sánchez Barrera <isaac.sanchez@bsc.es>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22843
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/cache/prefetch/base.hh