Perfect, thanks Dimuthu! Cheers, Sérgio
--- Sérgio Gomes Developer Relations Google | Gordon House | Barrow Street | Dublin 4 | Ireland Registered in Dublin, Ireland | Registration Number: 368047 --- On Tue, Dec 16, 2008 at 02:41, Dimuthu Gamage <dimut...@gmail.com> wrote: > Hi Sérgio Gomes, > > If you are writing clients, you need to free the stub, request and response > adbs and the env. > > If you are writing services, you don't need to free any adb. But if you do > custom malloc or strdups you have to free them. > > Thanks > Dimuthu > > On Mon, Dec 15, 2008 at 10:26 PM, Sérgio Gomes <sgo...@google.com> wrote: >> >> Hi there! >> >> I'm using the ADB generated code to write some small apps (samples for >> an API). I'd like to make this code as correct as possible, since >> developers will be using it as a reference, but I can't find anything >> in the documentation as to what exactly I'm supposed to free or not. >> >> In the samples I start by creating the environment, some headers, the >> service and a request. I assume I have to free all of these, since I >> created them. >> However, I'm not so sure about anything created by the framework >> (namely, the service response). Is it safe to free these myself or >> will the framework try to, at some point? Anything else I should look >> out for? >> >> Looks like the code samples included with Axis don't do any "free"ing, >> so it's hard to tell what's the right procedure. >> >> Thanks in advance! >> >> Cheers, >> Sérgio >> >> --- >> Sérgio Gomes >> Developer Relations >> >> Google | Gordon House | Barrow Street | Dublin 4 | Ireland >> Registered in Dublin, Ireland | Registration Number: 368047 > > > > -- > Thanks, > Dimuthu Gamage > > http://www.dimuthu.org > http://www.wso2.org >