From 8834e73cfd88610a90a8afd3f8740eb36418de80 Mon Sep 17 00:00:00 2001 From: "sooyeon.kim" Date: Wed, 31 Aug 2016 21:59:44 +0900 Subject: [PATCH] Remove config_release_engine when directories are made Change-Id: Id14848461b08b62454448efaff3e9161be05885f Signed-off-by: sooyeon.kim --- common/tts_config_mgr.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/common/tts_config_mgr.c b/common/tts_config_mgr.c index a008c7c..a3e33d4 100644 --- a/common/tts_config_mgr.c +++ b/common/tts_config_mgr.c @@ -1039,7 +1039,6 @@ int tts_config_mgr_initialize(int uid) if (0 != mkdir(TTS_CONFIG_BASE, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)) { SLOG(LOG_ERROR, tts_tag(), "[ERROR] Fail to make directory : %s", TTS_CONFIG_BASE); __tts_config_release_client(uid); - __tts_config_release_engine(); return TTS_CONFIG_ERROR_OPERATION_FAILED; } else { SLOG(LOG_DEBUG, tts_tag(), "Success to make directory : %s", TTS_CONFIG_BASE); @@ -1050,7 +1049,6 @@ int tts_config_mgr_initialize(int uid) if (0 != mkdir(TTS_HOME, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)) { SLOG(LOG_ERROR, tts_tag(), "[ERROR] Fail to make directory : %s", TTS_HOME); __tts_config_release_client(uid); - __tts_config_release_engine(); return TTS_CONFIG_ERROR_OPERATION_FAILED; } else { SLOG(LOG_DEBUG, tts_tag(), "Success to make directory : %s", TTS_HOME); @@ -1061,7 +1059,6 @@ int tts_config_mgr_initialize(int uid) if (0 != mkdir(TTS_DOWNLOAD_BASE, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)) { SLOG(LOG_ERROR, tts_tag(), "[ERROR] Fail to make directory : %s", TTS_DOWNLOAD_BASE); __tts_config_release_client(uid); - __tts_config_release_engine(); return TTS_CONFIG_ERROR_OPERATION_FAILED; } else { SLOG(LOG_DEBUG, tts_tag(), "Success to make directory : %s", TTS_DOWNLOAD_BASE); @@ -1072,7 +1069,6 @@ int tts_config_mgr_initialize(int uid) if (0 != mkdir(TTS_DOWNLOAD_ENGINE_INFO, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)) { SLOG(LOG_ERROR, tts_tag(), "[ERROR] Fail to make directory : %s", TTS_DOWNLOAD_ENGINE_INFO); __tts_config_release_client(uid); - __tts_config_release_engine(); return TTS_CONFIG_ERROR_OPERATION_FAILED; } else { SLOG(LOG_DEBUG, tts_tag(), "Success to make directory : %s", TTS_DOWNLOAD_ENGINE_INFO); -- 2.7.4