mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
impl-link: fix error message memory leak
`pw_link_info::error` was previously not cleared when a link was destroyed, leading to a memory leak if an error message had been set. For example, if format negotiation fails, and as a result the link is destroyed.
This commit is contained in:
parent
55dc9c3c27
commit
cf3e52c25c
1 changed files with 1 additions and 0 deletions
|
|
@ -1605,6 +1605,7 @@ void pw_impl_link_destroy(struct pw_impl_link *link)
|
|||
|
||||
free(link->name);
|
||||
free(link->info.format);
|
||||
free((char *) link->info.error);
|
||||
free(impl);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue