Re: ALSA Leaking memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux