diff options
author | lokilee73 <changjoo.lee@samsung.com> | 2019-07-08 20:15:07 +0900 |
---|---|---|
committer | lokilee73 <changjoo.lee@samsung.com> | 2019-07-08 20:15:33 +0900 |
commit | 13d5f005e92c69e90ea3059ac86df92c1cdbe6c8 (patch) | |
tree | 6b86e4a76faa8d11ed4bf1020d6455f8857e4db9 | |
parent | 6e773f886476ddee22e18a9b46cd8d5d9446e94c (diff) | |
download | deviced-accepted/tizen/5.0/unified/20190709.081333.tar.gz deviced-accepted/tizen/5.0/unified/20190709.081333.tar.bz2 deviced-accepted/tizen/5.0/unified/20190709.081333.zip |
Change-Id: I790ec86e21b5be9cd13f654197171c8ddc30d6c5
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
-rw-r--r-- | src/core/launch.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/launch.c b/src/core/launch.c index 57f4f88d..0a5217c5 100644 --- a/src/core/launch.c +++ b/src/core/launch.c @@ -44,10 +44,11 @@ static int set_current_lang(void) if (lang == NULL) return -1; ret = setenv("LANG", lang, 1); + free(lang); if (ret < 0) return -1; - free(lang); - return 0; + else + return 0; } |