Fix memory leak
[platform/core/api/media-content.git] / src / media_content.c
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");