diff --git a/pmu/spe.h b/pmu/spe.h index a954913830ae01abcced8d3ad07c9d89a547a3f8..44c0a3230e2ee3854da470929ccd3da14b441e95 100644 --- a/pmu/spe.h +++ b/pmu/spe.h @@ -132,10 +132,13 @@ public: : cpu(cpu), procMap(procMap), symbolMode(symMode) {} + /** + * @brief delete records + */ ~Spe() { if (records != nullptr) { - delete records; + delete[] records; records = nullptr; } }