Hello again,

I have sent my code in attachment, would be thankful if someone could have a look at it...

Yes, I have used valgrind but no memory leaks are detected. This happens because the application is simply allocating memory but not freeing it when call is terminated somehow keeping pointers to those piece of memories... thus memory consumption goes to incredibily high values and never goes down, even if I terminate all the calls. However, if I do destroy the stack, it is able to free up all the memory that was being used meaning that there is in fact no memory leak in the common sense but more of a strange memory management... why is memory not free'd when call is terminated? I see that handles are destroyed but still this does not cause memory to be free'd!

Any ideas on what can be done here?
Thanks again,
Tiago

On 6/6/06, Nickolay V. Shmyrev <[EMAIL PROTECTED]> wrote:
В Пнд, 05/06/2006 в 15:48 +0300, Tiago Loureiro пишет:
> Hello,
> I'm trying to use Sofia-SIP stack and have written a very small
> server-like application which simply answers for invites, answers OK
> back with some SDP and finally hangs up the call when BYE is received.
> Everything works fine but there's a serious memory leak which I have
> not been able to track down...
>
> Can someone please give some feedback on it and let me know if I am
> doing something wrong here? Should I free memory somewhere?
> Thank you for your support!
>
> Greetings,
> Tiago
>

Probably that particular case can be resolved just by looking into the
code, but for more complicated memory leaks valgrind is prefect. Have
you tried to run your application under valgrind?


_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to