Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession

2022-01-09 Thread Ross Finlayson
> On Jan 10, 2022, at 7:54 PM, Ba Jinsheng wrote: > > I am not sure if the design is like this, but it does incur unstopping memory > increasing. > > > OnDemandServerMediaSubsession::getStreamParameters() in > liveMedia/OnDemandServerMediaSubsession.cpp > This function will allocate a new S

Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession

2022-01-09 Thread Ba Jinsheng
I am not sure if the design is like this, but it does incur unstopping memory increasing. OnDemandServerMediaSubsession::getStreamParameters() in liveMedia/OnDemandServerMediaSubsession.cpp This function will allocate a new StreamState object and append it to the global array: fStreamStates.

Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession

2022-01-09 Thread Ross Finlayson
Unfortunately, reports of memory leaks aren’t worthwhile for me to investigate unless you can identify a specific object (class) that is allocated, and not later deallocated. Otherwise I can’t be sure that the heap isn’t just growing due to fragmentation - i.e., not a real memory leak. Ross F

[Live-devel] Memory leak in OnDemandServerMediaSubsession

2022-01-09 Thread Ba Jinsheng
To whom it may concern, I would like to report a memory leak issue in Live555. When sending multiple times of the content in 'command.rtsp' to the live555, the memory usage of live555 significantly increase, and never reduce. (In reality, need to update the session ID dynamically) The initial me