I just found one courious thing about ALSA, it seems that they changed the behaviour of how midi events are allocated. This means that if you have an old ALSA version, then there is a missing "snd_seq_event_free()" in sys_poll_midi(). With the newer version the MIDI events shouldn't be freed. Which version of ALSA do you have ?
this might be an explanation ... the machine was running a knoppix 3.6 hd install ... not sure, which alsa it was using ...
How long does it take for you until Pd crashes ?
about 10 to 20 minutes, sometimes only a few minutes...
PS: You can debug memory leaks easily using valgrind.
what's how i found it ;-)
cheers ... tim