Compare commits

..

No commits in common. "14301c372dfa6cef314139c44546e5646d34fade" and "33d3adba3fce1cf880acd3e3c4b9968cc6e50cab" have entirely different histories.

3 changed files with 4 additions and 13 deletions

View file

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.7) cmake_minimum_required(VERSION 3.7)
project(AnotherMemCheck) project(AnotherMemCheck)
set(AnotherMemCheck_VERSION 2.8) set(AnotherMemCheck_VERSION 2.7)
set(AnotherMemCheck_SOVERSION 2) set(AnotherMemCheck_SOVERSION 2)
set(AnotherMemCheck_SOURCES set(AnotherMemCheck_SOURCES

View file

@ -1,11 +1,5 @@
# Changelog # Changelog
## Version 2.8
Internal refactorings.
Minor change to avoid segfault when program exits with `exit(...)` function.
## Version 2.7 ## Version 2.7
Fix incorrect initialization. Fix incorrect initialization.

View file

@ -217,12 +217,9 @@ namespace SC_AM_Internal {
void exit_handler_stats() { void exit_handler_stats() {
if (SC_AM_Internal::stats != nullptr) { if (SC_AM_Internal::stats != nullptr) {
SC_AM_Internal::stats->print_status(); SC_AM_Internal::stats->print_status();
using SCS_AM_INTERNAL_Stats = SC_AM_Internal::Stats;
// Avoids segfault when program calls `exit(...)`. OS should reclaim memory SC_AM_Internal::stats->~SCS_AM_INTERNAL_Stats();
// when the process ends even if it isn't free'd here. SC_AM_Internal::stats = nullptr;
//using SCS_AM_INTERNAL_Stats = SC_AM_Internal::Stats;
//SC_AM_Internal::stats->~SCS_AM_INTERNAL_Stats();
//SC_AM_Internal::stats = nullptr;
} }
} }