Fix memory leak in sound_manager_get_current_playback[recording]_focus() 44/125544/1
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 18 Apr 2017 01:31:54 +0000 (10:31 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 18 Apr 2017 03:08:37 +0000 (12:08 +0900)
[Version] 0.3.112
[Profile] Common
[Issue Type] Memory leak

Change-Id: I0462f443d453e4c5331cad83c855f82e69c68698
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-sound-manager.spec
src/sound_manager.c

index d3d5116..c8be3bb 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-sound-manager
 Summary:    Sound Manager library
-Version:    0.3.111
+Version:    0.3.112
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 872453a..3608c3b 100644 (file)
@@ -498,6 +498,7 @@ int sound_manager_get_current_playback_focus(sound_stream_focus_change_reason_e
                        else
                                SM_SAFE_FREE(extra_info_str);
                }
+               SM_SAFE_FREE(stream_type_str);
        }
 
        return _convert_sound_manager_error_code(__func__, ret);
@@ -536,6 +537,7 @@ int sound_manager_get_current_recording_focus(sound_stream_focus_change_reason_e
                        else
                                SM_SAFE_FREE(extra_info_str);
                }
+               SM_SAFE_FREE(stream_type_str);
        }
 
        return _convert_sound_manager_error_code(__func__, ret);