over-release of memory in ObjectContext.m

May 8, 2011 at 11:04 AM

It appears that when calling ObjectContext´s getSVC, there is a double-release of the httpRequest variable at line 1598 of ObjectContext.m.  The offending object is allocated at line 611 and marked with autorelease at line 660 of that same file.  The release at 1598 then sets things up for a double-release when the pool catches up and tries to auto-release it again.  I fixed this in my copy by commenting out line 1598.  GetSVC and retrieveSVC do not appear to be called anywhere in the lib or samples, but I am accessing OData services that I have no prior knowledge of, so I can´t use odatagen and have to learn the schema dynamically, which led me to play with getSVC.

May 8, 2011 at 11:24 AM

sorry - should have just entered this as an issue, which I now have done