There is no case about d_default_lang is not null.
However, it couldn't suere that if the function's logic is changed.
So, this added the free(0 for considering if d_default_lang is not null case
Change-Id: Ie4c650bcd062b3045f6ecc1ffe3e9eee26d0ff0a
if (0 != vcd_config_get_default_language(&g_default_lang)) {
SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] There is No default voice in config");
/* Set default voice */
+ if (g_default_lang) {
+ free(g_default_lang);
+ }
g_default_lang = strdup(VC_BASE_LANGUAGE);
if (NULL == g_default_lang) {
SLOG(LOG_ERROR, TAG_VCD, "[Engine Agent] Fail to allocate memory");