mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
module-device-restore: Fix memory leak in read_sink_format_reply
This function could sometimes leak a perportentry. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
parent
34862dbd43
commit
bf53143387
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue