- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Description
Here are the details:
$ valgrind --version
valgrind-3.8.1
rustc --version
rustc 0.13.0-nightly (193390d 2014-12-11 22:56:54 +0000)
uname -a
Linux 2.6.32-504.1.3.el6.x86_64 #1 SMP Tue Nov 11 17:57:25 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Here is the program:
$ cat learn.rs
fn main() {
println!("Hello World!")
println!("How are you today")
}
$ valgrind --leak-check=full ./learn
==38235== Memcheck, a memory error detector
==38235== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==38235== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==38235== Command: ./learn
==38235==
Hello World!
How are you today
==38235==
==38235== HEAP SUMMARY:
==38235==     in use at exit: 1,184 bytes in 4 blocks
==38235==   total heap usage: 18 allocs, 14 frees, 2,696 bytes allocated
==38235==
==38235== LEAK SUMMARY:
==38235==    definitely lost: 0 bytes in 0 blocks
==38235==    indirectly lost: 0 bytes in 0 blocks
==38235==      possibly lost: 0 bytes in 0 blocks
==38235==    still reachable: 1,184 bytes in 4 blocks
==38235==         suppressed: 0 bytes in 0 blocks
==38235== Reachable blocks (those to which a pointer was found) are not shown.
==38235== To see them, rerun with: --leak-check=full --show-reachable=yes
==38235==
==38235== For counts of detected and suppressed errors, rerun with: -v
==38235== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 6 from 6)