stream-manager: Fix a memory leak 55/107255/1
authorJungsup Lee <jungsup4.lee@samsung.com>
Tue, 27 Dec 2016 04:28:18 +0000 (13:28 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Tue, 27 Dec 2016 08:43:41 +0000 (17:43 +0900)
[Version] 5.0.114
[Profile] Common
[Issue Type] bug fix

Signed-off-by: Jungsup Lee <jungsup4.lee@samsung.com>
Change-Id: Ic25c20af5c2dda0e29e9296bcb60413dd6a09fb1

packaging/pulseaudio-modules-tizen.spec
src/stream-manager.c

index 696a1c9..e70f314 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          5.0.113
+Version:          5.0.114
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index f26cea3..d408f75 100644 (file)
@@ -2892,6 +2892,7 @@ static process_stream_result_t process_stream(pa_stream_manager *m, void *stream
                         pa_log_debug("set default channel_map: channels(%u)", ((pa_sink_input_new_data*)stream)->channel_map.channels);
                         ((pa_sink_input_new_data*)stream)->channel_map_is_set = true;
                     }
+                    pa_xfree(format_str);
                 }
             } else {
                 pa_log_debug("no request formats available");