Fix #15: fix a leak of notes