mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
module-tunnel: Fix double free
Local pointer 'dn' freed again when pa_thread_new() failed. Signed-off-by: KimJeongYeon <jeongyeon.kim@samsung.com>
This commit is contained in:
parent
403ba1e676
commit
19c71ce851
1 changed files with 2 additions and 2 deletions
|
|
@ -2200,8 +2200,6 @@ int pa__init(pa_module*m) {
|
|||
u->mcalign = pa_mcalign_new(pa_frame_size(&u->source->sample_spec));
|
||||
#endif
|
||||
|
||||
pa_xfree(dn);
|
||||
|
||||
u->time_event = NULL;
|
||||
|
||||
u->maxlength = (uint32_t) -1;
|
||||
|
|
@ -2222,6 +2220,8 @@ int pa__init(pa_module*m) {
|
|||
pa_source_put(u->source);
|
||||
#endif
|
||||
|
||||
pa_xfree(dn);
|
||||
|
||||
if (server)
|
||||
pa_xfree(server);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue