diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2006-11-08 20:40:10 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2006-11-08 20:40:10 +0000 |
commit | c4fbd7fc8bc34b33e2df84fe3c65ab145e1a1f25 (patch) | |
tree | 48259a377e5f15c4f348fb98e9a9f5e50e4de25a | |
parent | febe259e912b3f2dbd4b8c9e2fc6c5912938708e (diff) |
Assign creation of the allocation log file to a separate #define.
-rw-r--r-- | DebugMemory.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |