Change-Id: Ifbac73ef284ce1fd96c7097356b5aa52c57fd2ba
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
}
else {
PRINT_LOG(DLOG_INFO, "NativeTCT", "Name check error! [%s][%s]", pszGetTCName, tc_array[i].name);
+ FREE_MEMORY_TC(pszGetTCName);
ASSERT_EQ(0, 1);
}
if (COMMON_DEBUG)
char *pwd = NULL;
int ret = connection_profile_get_cellular_auth_info(profile_cellular, &type, &name, &pwd);
- FREE_RESOURCE(name); FREE_RESOURCE(pwd);
+ if (ret == CONNECTION_ERROR_NONE) {
+ FREE_RESOURCE(name);
+ FREE_RESOURCE(pwd);
+ }
if (telephony_supported)
CHECK_RETURN("connection_profile_get_cellular_auth_info", ret, CONNECTION_ERROR_NONE);