Assign creation of the allocation log file to a separate #define.

main
Hisham Muhammad 20 years ago
parent febe259e91
commit c4fbd7fc8b
  1. 4
      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;
}

Loading…
Cancel
Save