Fix coverity issue - Resource leak 03/174503/1 accepted/tizen/unified/20180405.064333 submit/tizen/20180404.024456
authorJeongmo Yang <jm80.yang@samsung.com>
Mon, 2 Apr 2018 11:05:51 +0000 (20:05 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Mon, 2 Apr 2018 11:05:51 +0000 (20:05 +0900)
[Version] 0.10.157
[Profile] Common
[Issue Type] Coverity
[Dependency module] N/A

Change-Id: If6dc7cde938019e9201f8a9649b7bdb8cfac6578
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/libmm-camcorder.spec
src/mm_camcorder_gstcommon.c

index 78f49dc..19979f8 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    0.10.156
+Version:    0.10.157
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 6bdb59b..b0653f3 100644 (file)
@@ -899,7 +899,7 @@ int _mmcamcorder_create_encodesink_bin(MMHandleType handle, MMCamcorderEncodebin
                        _mmcam_dbg_err("failed to get attributes [0x%x]", err);
                }
 
-               return err;
+               goto pipeline_creation_error;
        }
 
        _mmcam_dbg_log("Profile[%d]", profile);