diff --git a/DebugMemory.c b/DebugMemory.c index 1ef740dd..da2bf624 100644 --- a/DebugMemory.c +++ b/DebugMemory.c @@ -49,7 +49,11 @@ void DebugMemory_new() { singleton->allocations = 0; singleton->deallocations = 0; singleton->size = 0; + #ifdef DEBUG_ALLOC singleton->file = fopen("/tmp/htop-debug-alloc.txt", "w"); + #else + singleton->file = NULL; + #endif singleton->totals = true; //singleton->file = NULL; }