Advertisement
Guest User

Untitled

a guest
May 28th, 2015
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. $ film42@mbp ~/D/D/S/C/t/a/build (master)>
  2. valgrind --leak-check=full --dsymutil=yes ./avl_tree_tests
  3. ==65466== Memcheck, a memory error detector
  4. ==65466== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
  5. ==65466== Using Valgrind-3.11.0.SVN and LibVEX; rerun with -h for copyright info
  6. ==65466== Command: ./avl_tree_tests
  7. ==65466==
  8. --65466-- run: /usr/bin/dsymutil "./avl_tree_tests"
  9. Running test: Contains Tests
  10. Malloc'd tree
  11. Mallocing data: Hello!
  12. Malloc'd node
  13. Mallocing data: 3
  14. Malloc'd node
  15. Mallocing data: 4
  16. Malloc'd node
  17. Mallocing data: 5
  18. Malloc'd node
  19. Deleting node: 3
  20. Deleting node: 5
  21. Deleting node: Hello!
  22. Deleting node: 4
  23. Free'd tree
  24. ALL TESTS PASSED
  25. Tests run: 1
  26. ==65466==
  27. ==65466== HEAP SUMMARY:
  28. ==65466== in use at exit: 38,716 bytes in 423 blocks
  29. ==65466== total heap usage: 516 allocs, 93 frees, 45,137 bytes allocated
  30. ==65466==
  31. ==65466== 32 bytes in 1 blocks are definitely lost in loss record 29 of 82
  32. ==65466== at 0x1000083B1: malloc (vg_replace_malloc.c:303)
  33. ==65466== by 0x100001D94: avl_node_init (avl_tree.c:16)
  34. ==65466== by 0x100001552: insert_recur (avl_tree.c:125)
  35. ==65466== by 0x1000015B8: insert_recur (avl_tree.c:134)
  36. ==65466== by 0x10000159A: insert_recur (avl_tree.c:132)
  37. ==65466== by 0x1000014B1: avl_insert (avl_tree.c:153)
  38. ==65466== by 0x1000011A0: avl_contains_tests (main.c:45)
  39. ==65466== by 0x1000010D8: avl_all_tests (main.c:83)
  40. ==65466== by 0x10000104A: main (main.c:91)
  41. ==65466==
  42. ==65466== LEAK SUMMARY:
  43. ==65466== definitely lost: 32 bytes in 1 blocks
  44. ==65466== indirectly lost: 0 bytes in 0 blocks
  45. ==65466== possibly lost: 0 bytes in 0 blocks
  46. ==65466== still reachable: 4,096 bytes in 1 blocks
  47. ==65466== suppressed: 34,588 bytes in 421 blocks
  48. ==65466== Reachable blocks (those to which a pointer was found) are not shown.
  49. ==65466== To see them, rerun with: --leak-check=full --show-leak-kinds=all
  50. ==65466==
  51. ==65466== For counts of detected and suppressed errors, rerun with: -v
  52. ==65466== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 17 from 17)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement