Fix coverity issue 71/153571/1 accepted/tizen_4.0_unified tizen_4.0 tizen_4.0_tv accepted/tizen/4.0/unified/20171011.071410 submit/tizen_4.0/20171010.100840 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
authorGilbok Lee <gilbok.lee@samsung.com>
Fri, 29 Sep 2017 01:16:20 +0000 (10:16 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Fri, 29 Sep 2017 01:16:20 +0000 (10:16 +0900)
[Version] 0.10.9
[Profile] Mobile, TV
[Issue Type] Fix coverity issue

Change-Id: If77f08d0ba47f3bc0b4e9e2978a091601f35ac0f

packaging/libmm-transcode.spec
transcode/mm_transcode.c

index acc6f84..6e20179 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-transcode
 Summary:    Multimedia Framework Video Transcode Library
-Version:    0.10.8
+Version:    0.10.9
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index 874657d..1865111 100644 (file)
@@ -246,6 +246,7 @@ int mm_transcode(MMHandleType MMHandle, unsigned int resolution_width, unsigned
                ret = _mm_transcode_set_handle_parameter(param, resolution_width, resolution_height, fps_value, start_position, duration, seek_mode, out_Filename);
                if (ret != MM_ERROR_NONE) {
                        LOGE("ERROR -Set parameter");
+                       TRANSCODE_FREE(param);
                        return ret;
                }
 
@@ -254,6 +255,7 @@ int mm_transcode(MMHandleType MMHandle, unsigned int resolution_width, unsigned
                        LOGD("Success - Preset Capsfilter");
                } else {
                        LOGE("ERROR - Preset Capsfilter");
+                       TRANSCODE_FREE(param);
                        return ret;
                }