[Live-devel] Possible memory leak

Vlad Seryakov vlad at crystalballinc.com
Sun Apr 8 16:42:18 PDT 2007


I did not post correct info, it is allocated in createNewSMS in 
DynamicRTSPServer.cpp, so for every new session it will be allocated but 
not freed.

Ross Finlayson wrote:
>> In RTSPServer in case when index file is used indexFileName gets
>> dynamically allocated but i do not see it is being freed on session close.
> 
> The index file name is dynamically allocated in the 
> "MPEG2TransportStreamIndexFile" constructor, and deallocated in the 
> destuctor.  Also, the "MPEG2TransportStreamIndexFile" object (which 
> contains the allocated index file name string) is created in the 
> "MPEG2TransportFileServerMediaSubsession" constructor, and 
> deallocated in the destructor.  So I don't think there's any memory 
> leak there.

-- 
Vlad Seryakov
vlad at crystalballinc.com
http://www.crystalballinc.com/vlad/


More information about the live-devel mailing list