Fix memory leak 26/244126/3 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.121224 accepted/tizen/6.0/unified/hotfix/20201103.003336 accepted/tizen/6.0/unified/hotfix/20201103.050051 accepted/tizen/unified/20200917.055753 submit/tizen/20200916.012329 submit/tizen/20200917.004955 submit/tizen_6.0/20201029.205102 submit/tizen_6.0_hotfix/20201102.192502 submit/tizen_6.0_hotfix/20201103.114802 tizen_6.0.m2_release
authorMinje Ahn <minje.ahn@samsung.com>
Tue, 15 Sep 2020 07:26:29 +0000 (16:26 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Tue, 15 Sep 2020 07:57:36 +0000 (16:57 +0900)
Change-Id: I5b601b8ca90ef907e827c05a23e3a60a360eaa1c
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
packaging/capi-content-media-content.spec
src/media_content.c

index 8d590f6..59baa6b 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-content-media-content
 Summary:    A Media content library in Tizen Native API
-Version:    0.4.12
+Version:    0.4.13
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 8b2b3af..69df521 100644 (file)
@@ -222,6 +222,8 @@ int media_content_scan_file(const char *path)
                        return MEDIA_CONTENT_ERROR_INVALID_PARAMETER;
                }
 
+               g_free(folder_path);
+
                /* check feature */
                content_retvm_if(!_media_util_check_support_media_type(repl_path), MEDIA_CONTENT_ERROR_NOT_SUPPORTED, "Unsupported media type");