config_lines = mgetl(atoms_directory + "config");
else
if (rhs == 0)
- values = getPreferenceValue("//web/body/proxy", pref_attrs(2, :));
+ values = getPreferencesValue("//web/body/proxy", pref_attrs(2, :));
for i = 1:size(pref_attrs, "c")
if ~isempty(values(i)) then
if values(i) == "true" then
res = curl_easy_setopt(curl, CURLOPT_PROXY, proxyHost);
if (res != CURLE_OK)
{
+ FREE(proxyHost);
+ FREE(proxyUserPwd);
FREE(filename);
Scierror(999, _("Failed to set proxy host [%s]\n"), errorBuffer);
return NULL;
res = curl_easy_setopt(curl, CURLOPT_PROXYPORT, proxyPort);
if (res != CURLE_OK)
{
+ FREE(proxyHost);
+ FREE(proxyUserPwd);
FREE(filename);
Scierror(999, _("Failed to set proxy port [%s]\n"), errorBuffer);
return NULL;
res = curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD, proxyUserPwd);
if (res != CURLE_OK)
{
+ FREE(proxyHost);
+ FREE(proxyUserPwd);
FREE(filename);
Scierror(999, _("Failed to set proxy user:password [%s]\n"), errorBuffer);
return NULL;
}
}
+ FREE(proxyHost);
+ FREE(proxyUserPwd);
}
} /* end of the set of the proxy */
FREE(shortfilename_xml_conf);
shortfilename_xml_conf = NULL;
}
- FREE(path);
- path = NULL;
}
+ FREE(path);
+ path = NULL;
+
if (*doc == NULL)
{
*xpathCtxt = NULL;
FREE(shortfilename_xml_conf);
shortfilename_xml_conf = NULL;
}
- FREE(path);
- path = NULL;
}
+ FREE(path);
+ path = NULL;
+
xmlFreeDoc(doc);
}