From d6ef47d6802abb3febb4d0e81197c39ea3444551 Mon Sep 17 00:00:00 2001 From: sangho park Date: Thu, 10 May 2018 11:18:59 +0900 Subject: [PATCH] fix coverity CID-110342 Resource leak Change-Id: If8c0ea85c19f4bc251e798e6fb11eedb417144b7 Signed-off-by: sangho park --- packaging/capi-media-vision.spec | 2 +- test/testsuites/surveillance/surveillance_test_suite.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packaging/capi-media-vision.spec b/packaging/capi-media-vision.spec index 5d73ca5..a66512b 100644 --- a/packaging/capi-media-vision.spec +++ b/packaging/capi-media-vision.spec @@ -1,6 +1,6 @@ Name: capi-media-vision Summary: Media Vision library for Tizen Native API -Version: 0.3.29 +Version: 0.3.30 Release: 1 Group: Multimedia/Framework License: Apache-2.0 and BSD-3-Clause diff --git a/test/testsuites/surveillance/surveillance_test_suite.c b/test/testsuites/surveillance/surveillance_test_suite.c index 82373e2..5d80753 100644 --- a/test/testsuites/surveillance/surveillance_test_suite.c +++ b/test/testsuites/surveillance/surveillance_test_suite.c @@ -596,6 +596,10 @@ void push_source() error = mv_surveillance_push_source(source, video_stream_id); if (MEDIA_VISION_ERROR_NONE != error) { PRINT_E("Errors were occurred during source pushing, code %i", error); + int error2 = mv_destroy_source(source); + if (MEDIA_VISION_ERROR_NONE != error2) { + PRINT_E("Errors were occurred during source destroying, code %i", error2); + } return; } -- 2.7.4