Re: memory leak in octstr_imm

"Nikos Balkanas" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <4D57AEAF234F4B98BE413A4977E2872C@tardis>
Yeap. But be careful. Immutables are not released before the end. It is a 
very bad idea to use them in recurring functions. That's why the only place 
they are used is in initialization & configuration.

BR,
Nikos
----- Original Message ----- 
From: "Alejandro Guerrieri" <[email protected]>
To: "Dilan Anuruddha" <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, November 25, 2009 1:23 PM
Subject: Re: memory leak in octstr_imm


>I don't think so, immutables are kept in memory until the process 
>finishes. That's by design.
>
> Read the comments on gwlib/octstr.h, there's an explanation about it 
> there.
>
> Regards,
> --
> Alejandro Guerrieri
> [email protected]
>
>
>
> On 25/11/2009, at 12:04, Dilan Anuruddha wrote:
>
>> Hi all,
>>       I've been using kannel libraries for a campus project. When we 
>> create Octstr objects using octstr_imm (e.g. when we pass arguments  to a 
>> function), we don't release the memory.... Isn't this leaking  memory??? 
>> So do we have to explicitly release memory inside the  function????
>>
>> thanks in advance,
>> Dilan
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.