Am I correct to assume that if I were do something like the following, it would leak or just not a good idea whether it leaks or not?
SPFile temp = new SPFile();
using (SPSite site = SPContext.Current.Site)
{
using(SPWeb web = site.OpenWeb())
{
temp = web.GetFile(location);
//do something
}
}
return temp;
==========================
Session["File"] = GetFile(location);