summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKimJeongYeon <jeongyeon.kim@samsung.com>2016-01-06 17:28:11 +0900
committerArun Raghavan <git@arunraghavan.net>2016-01-07 17:59:15 +0530
commit19c71ce85149fa75bc14875d0bb9c9358af57dc7 (patch)
treedfc10e2850d6e6551bf53bfb4696f15c822e7948
parent403ba1e676d10e174425c6611a0e170550ba731d (diff)
downloadpulseaudio-19c71ce85149fa75bc14875d0bb9c9358af57dc7.tar.gz
module-tunnel: Fix double free
Local pointer 'dn' freed again when pa_thread_new() failed. Signed-off-by: KimJeongYeon <jeongyeon.kim@samsung.com>
-rw-r--r--src/modules/module-tunnel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/module-tunnel.c b/src/modules/module-tunnel.c
index 833423a58..53c440225 100644
--- a/src/modules/module-tunnel.c
+++ b/src/modules/module-tunnel.c
@@ -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);