[Internal: merge sync-agent]
[platform/core/system/sync-agent.git] / src / framework / account / service.c
index 740d7f8..3cbcdf7 100755 (executable)
@@ -238,9 +238,9 @@ EXPORT_API void sync_agent_free_service_account_info(sync_agent_service_account_
        if (account_info != NULL) {
                if (account_info->email != NULL)
                        free(account_info->email);
-
+               account_info->email = NULL;
                free(account_info);
+               account_info = NULL;
        }
-
        _EXTERN_FUNC_EXIT;
 }