[pulseaudio-discuss] [PATCH] module-device-restore: Fix memory leak in read_sink_format_reply

Peter Meerwald pmeerw at pmeerw.net
Wed Jan 28 14:05:17 PST 2015


> This function could sometimes leak a perportentry.

ack!
 
> Signed-off-by: David Henningsson <david.henningsson at canonical.com>
> ---
>  src/modules/module-device-restore.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/modules/module-device-restore.c b/src/modules/module-device-restore.c
> index 09ba60a..70a6517 100644
> --- a/src/modules/module-device-restore.c
> +++ b/src/modules/module-device-restore.c
> @@ -1021,6 +1021,7 @@ static void read_sink_format_reply(struct userdata *u, pa_tagstruct *reply, pa_s
>          PA_IDXSET_FOREACH(f, e->formats, idx) {
>              pa_tagstruct_put_format_info(reply, f);
>          }
> +        perportentry_free(e);
>      }
>      pa_xfree(name);
>  }
> -- 
> 2.1.4
> 
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
> 

-- 

Peter Meerwald
+43-664-2444418 (mobile)


More information about the pulseaudio-discuss mailing list