[pulseaudio-discuss] [PATCH] device-manager: Fix a memory leak.

Colin Guthrie gmane at colin.guthr.ie
Fri Mar 23 02:42:22 PDT 2012


'Twas brillig, and Tanu Kaskinen at 23/03/12 09:36 did gyre and gimble:
> ---
>  src/modules/module-device-manager.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/src/modules/module-device-manager.c b/src/modules/module-device-manager.c
> index d7f30c6..2ce4c78 100644
> --- a/src/modules/module-device-manager.c
> +++ b/src/modules/module-device-manager.c
> @@ -1443,6 +1443,8 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio
>              pa_xfree(devices[i]);
>          }
>  
> +        pa_xfree(devices);
> +
>          if (!first) {
>              trigger_save(u);
>  

ACK.

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/



More information about the pulseaudio-discuss mailing list