I'm doing a simple overloading of a function and I create a SPSite object when I'm calling the second function. I'm not sure of how to dispose of it in this scenario.
public static string GetConfigValue(string name, string webURL)
{
return GetConfigValue(configName, new SPSite(webURL).RootWeb);
}