diff options
-rw-r--r-- | src/tagTracker.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tagTracker.c b/src/tagTracker.c index 23110c682..e7854a0e6 100644 --- a/src/tagTracker.c +++ b/src/tagTracker.c @@ -71,9 +71,14 @@ void printMemorySavedByTagTracker() { for(i = 0; i < TAG_NUM_OF_ITEM_TYPES; i++) { if(!tagLists[i]) continue; + sum -= sizeof(List); + node = tagLists[i]->firstNode; while(node != NULL) { + sum -= sizeof(ListNode); + sum -= sizeof(int); + sum -= sizeof(node->key); sum += (strlen(node->key)+1)*(*((int *)node->data)); node = node->nextNode; } |