From b020d5d58601c82c3f848a8675738f4affa895f7 Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Mon, 2 Apr 2018 20:05:51 +0900 Subject: [PATCH] Fix coverity issue - Resource leak [Version] 0.10.157 [Profile] Common [Issue Type] Coverity [Dependency module] N/A Change-Id: If6dc7cde938019e9201f8a9649b7bdb8cfac6578 Signed-off-by: Jeongmo Yang --- packaging/libmm-camcorder.spec | 2 +- src/mm_camcorder_gstcommon.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/libmm-camcorder.spec b/packaging/libmm-camcorder.spec index 78f49dc..19979f8 100644 --- a/packaging/libmm-camcorder.spec +++ b/packaging/libmm-camcorder.spec @@ -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 diff --git a/src/mm_camcorder_gstcommon.c b/src/mm_camcorder_gstcommon.c index 6bdb59b..b0653f3 100644 --- a/src/mm_camcorder_gstcommon.c +++ b/src/mm_camcorder_gstcommon.c @@ -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); -- 2.7.4