[alsa-devel] ALSA Leaking memory

Takashi Iwai tiwai at suse.de
Mon Nov 26 12:30:22 CET 2007


At Mon, 26 Nov 2007 08:17:11 +0100 (CET),
Jaroslav Kysela wrote:
> 
> > Any idea on that other valgrind bt I posted? Some leak with
> > snd_config_make() involved?
> 
> Please, give use a simple testcase. This issue might be difficult to 
> investigate without it.

Maybe this one?


Takashi

diff -r 449e65b91bb3 src/pcm/pcm_hooks.c
--- a/src/pcm/pcm_hooks.c	Mon Nov 26 12:29:37 2007 +0100
+++ b/src/pcm/pcm_hooks.c	Mon Nov 26 12:47:10 2007 +0100
@@ -657,6 +657,7 @@ int _snd_pcm_hook_ctl_elems_install(snd_
 			       snd_pcm_hook_ctl_elems_close, sctl);
 	if (err < 0)
 		goto _err;
+	snd_config_delete(pcm_conf);
 	return 0;
  _err:
 	if (h_hw_params)


More information about the Alsa-devel mailing list