[reSIProcate] about memory leak
i ran basicCall.cxx on Win32 to check memory leak. To do it, I
changed some stack allocation variable to heap alloc. (stackUac,
stackUas, uac, uas). and set _CrtMemCheckpoint to the first and last
of main.
As a result of it, I found a strange thing except static or global
memory allocations.
In making sdp, I assumed that to delete sdp is to delete txt(Data),
hfv(HeaderFieldValue).
But, two variables were not deleted. so, I need to delete both of
them explicitly.
I guess it is a kind of bug.
And another one, When I made some program using dum, I found another
leak detected by CrtMemCheckpoint. it is InviteSession.cxx.
mProposedLocalSdp.release(); line 1993.
I guess just release of auto_ptr unassigned by proper variable may
occur dangling pointer.
But in this file, I found mProposedLocalSdp.release() is often used.
I am not sure of it. because other objects may deallocate them.
What do you think of it?
thank you.