Messages in this thread | | | Subject | Re: [PATCH] SOUND: OSS sequencer should be initialized after snd_seq_system_client_init | From | Catalin Marinas <> | Date | Sun, 19 Jul 2009 23:19:47 +0100 |
| |
On Sun, 2009-07-19 at 21:58 +0530, Jaswinder Singh Rajput wrote: > [PATCH] SOUND: OSS sequencer should be initialized after snd_seq_system_client_init > > When build SND_SEQUENCER in kernel then OSS sequencer(alsa_seq_oss_init) > is initialized before System (snd_seq_system_client_init) which leads to > memory leak :
Thanks for investigating this. I haven't looked at the code in detail but I find it a bit weird that initialisation order fixes the memory leak. Shouldn't the memory allocation logic change slightly to avoid the leak as well (that's in case someone manually inserts the modules in the wrong order)?
-- Catalin
| |