Given that you have Realtek hardware, perhaps this patch from the
upstream 3.4 kernel will fix the problem:

author  Jesper Juhl
Thu, 12 Apr 2012 20:11:25 +0000 (22:11 +0200)
committer       Takashi Iwai    
Fri, 13 Apr 2012 05:35:57 +0000 (07:35 +0200)
commit  7d7eb9ea314e992413620610b4d09c9cd5fa8959
tree    159a2cc18ad80868af18d7a0675a940c457e1536
parent  29ebe40284c75a5888c601872059fca7e258528d

ALSA: hda/realtek - Fix mem leak (and rid us of trailing whitespace).

In sound/pci/hda/patch_realtek.c::alc_auto_fill_dac_nids(), in the
'for (;;)' loop, if the 'badness' value returned from
fill_and_eval_dacs() is negative, then we'll return from the function
without freeing the memory we allocated for 'best_cfg', thus leaking.
Fix the leak by kfree()'ing the memory when badness is negative.

While I was there I also noticed some trailing whitespace in the
function that I removed (along with all other trailing whitespace in
the file) - it didn't seem worth-while to do that as two patches, so I
hope it's OK that I just did it all as one patch.

Signed-off-by: Jesper Juhl
Signed-off-by: Takashi Iwai

The upcoming Ubuntu 12.10 "Qantal Quetzal" is based on the upstream 3.5
kernel and thus should include this patch.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/728901

Title:
  pulseaudio gradually using more memory, maybe leaking

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/728901/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to