sdcc leaks memory. The attached file was produced using
valgrind --num-callers=16 --leak-check=yes sdcc --std-c99 -mz80 -c -I../include/ -I../../libcv/include --opt-code-size --fverbose-asm --max-allocs-per-node 10000 cvu_play_music.c 2> log
OK, it doesn\'t really show a thousand leaks - I already fixed a few, so it\'s down to 904 now. Similar results can be obtained by compiling any file for any target. The file I compiled is small; leaks are a more serious problem for larger source files.