Skip to content

Instantly share code, notes, and snippets.

@robertjwhitney
Created March 24, 2013 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertjwhitney/5232518 to your computer and use it in GitHub Desktop.
Save robertjwhitney/5232518 to your computer and use it in GitHub Desktop.
$ valgrind --version
valgrind-3.8.1
$ valgrind ./ex6
==56827== Memcheck, a memory error detector
==56827== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==56827== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==56827== Command: ./ex6
==56827==
==56827== WARNING: Support on MacOS 10.8 is experimental and mostly broken.
==56827== WARNING: Expect incorrect results, assertions and crashes.
==56827== WARNING: In particular, Memcheck on 32-bit programs will fail to
==56827== WARNING: detect any errors associated with heap-allocated data.
==56827==
You are 100 miles away.
You have 2.345000 levels of power.
You have 56789.453200 awesome super powers.
I have an initial A.
I have a first name Zed.
I have a list name Shaw.
My whole name is Zed A. Shaw.
==56827==
==56827== HEAP SUMMARY:
==56827== in use at exit: 62,912 bytes in 367 blocks
==56827== total heap usage: 518 allocs, 151 frees, 66,778 bytes allocated
==56827==
==56827== LEAK SUMMARY:
==56827== definitely lost: 8,704 bytes in 15 blocks
==56827== indirectly lost: 1,236 bytes in 7 blocks
==56827== possibly lost: 4,925 bytes in 68 blocks
==56827== still reachable: 48,047 bytes in 277 blocks
==56827== suppressed: 0 bytes in 0 blocks
==56827== Rerun with --leak-check=full to see details of leaked memory
==56827==
==56827== For counts of detected and suppressed errors, rerun with: -v
==56827== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment