Closed chrisosaurus closed 9 years ago
This has been fixed in #3
Thanks @phillid
A thing of beauty
chris@Ox1b dodo(master)-> make test
CC dodo.c
CC -o dodo
Running test.sh
/usr/bin/valgrind
Writing file
Running dodo
==2237== Memcheck, a memory error detector
==2237== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==2237== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==2237== Command: ./dodo tmp_testing_file
==2237==
'hello world how are you mutter mutter sl/ash
'
'hello'
==2237==
==2237== HEAP SUMMARY:
==2237== in use at exit: 0 bytes in 0 blocks
==2237== total heap usage: 13 allocs, 13 frees, 2,013 bytes allocated
==2237==
==2237== All heap blocks were freed -- no leaks are possible
==2237==
==2237== For counts of detected and suppressed errors, rerun with: -v
==2237== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 4)
Comparing output
All green
Removing temporary file
That's a good look indeed. Now to figure out how to delete all these ugly dangling commits github seems to be digging up from a bunch of rebasing I did...
@phillid I don't think you can and it isn't a big deal, from what I can tell github makes a link / counts it when you push the commit, even if you later rebase or possibly even destroy the repo.
Currently in the dodo codebase we have instances of
i = new_instruction(PRINT);
where we then storei
in the list of instructions, these are not cleaned up on program exit.You can see valgrind listing each instance of this by running
make test
: