Re: [Live-devel] Memory leak in handleCmd_PLAY

2023-06-08 Thread Ross Finlayson
> On Jun 8, 2023, at 11:22 PM, Meng Ruijie wrote: > > We now show you where the memory leak happens as follows. We also attached > the reproduction steps, so that you can reproduce this bug based on the > README. > > > > ==2720== 96 bytes in 1 blocks are definitely lost in loss record

Re: [Live-devel] Memory leak in handleCmd_PLAY

2023-06-08 Thread Ross Finlayson
> On Jun 8, 2023, at 5:03 PM, Meng Ruijie wrote: > > Hi, > > We found one memory leak No you didn’t. You ran “valgrind” on an application that uses our RTSP server implementation. At one point in the program, you exited it (presumably by modifying the code). When you exited the program,

Re: [Live-devel] Memory leak report

2023-05-10 Thread Ross Finlayson
Jie, Thanks for the report. I have just installed a new version (2023-05-10) of the code that fixes this. Ross Finlayson Live Networks, Inc. http://www.live555.com/ ___ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/m

Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession

2022-01-10 Thread Ba Jinsheng
Streaming Media - development & use Subject: Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession - External Email - > On Jan 10, 2022, at 9:18 PM, Ba Jinsheng wrote: > > Unfortunately, in my experimental environment, it looks unlikely that the > objects are delete

Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession

2022-01-10 Thread Ross Finlayson
> On Jan 10, 2022, at 9:18 PM, Ba Jinsheng wrote: > > Unfortunately, in my experimental environment, it looks unlikely that the > objects are deleted, even after 60 seconds. If you are running the unmodified LIVE555 server code, then the function GenericMediaServer::ClientSession::liv

Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession

2022-01-10 Thread Ba Jinsheng
: LIVE555 Streaming Media - development & use Subject: Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession - External Email - > On Jan 10, 2022, at 7:54 PM, Ba Jinsheng > mailto:bajinsh...@u.nus.edu>> wrote: > > I am not sure if the design is

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
ive-devel On Behalf Of Ross Finlayson Sent: Monday, January 10, 2022 2:06 PM To: LIVE555 Streaming Media - development & use Subject: Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession - External Email - Unfortunately, reports of memory leaks aren’t worthwhile fo

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

Re: [Live-devel] Memory Leak in AC3AudioStreamFramer

2021-08-15 Thread Ross Finlayson
> On Aug 13, 2021, at 6:05 PM, Ba Jinsheng wrote: > > But would delete[] be better? Yes (although in this case it doesn’t really matter, because the ‘objects’ being allocated in an array are just ‘char’s). But I’ve released a new version (2021.08.14) that fixes this. Ross Finlayson Live Ne

Re: [Live-devel] Memory Leak in AC3AudioStreamFramer

2021-08-13 Thread Ba Jinsheng
- From: live-devel On Behalf Of Ross Finlayson Sent: Saturday, August 14, 2021 12:48 AM To: LIVE555 Streaming Media - development & use Subject: Re: [Live-devel] Memory Leak in AC3AudioStreamFramer - External Email - Thanks again for the report. This bug has also been fixed in

Re: [Live-devel] Memory Leak in AC3AudioStreamFramer

2021-08-13 Thread Ross Finlayson
Thanks again for the report. This bug has also been fixed in the latest “LIVE555 Streaming Media” release (2021.08.13). Ross Finlayson Live Networks, Inc. http://www.live555.com/ ___ live-devel mailing list live-devel@lists.live555.com http://lists.

Re: [Live-devel] Memory Leak Occurs.

2018-02-26 Thread Ross Finlayson
There’s no memory leak here, because “setSDPLinesFromRTPSink()” is called (from "OnDemandServerMediaSubsession::sdpLines()”) only when “fSDPLines” is NULL. (Note line 60 of “OnDemandServerMediaSubsession.cpp”.) Ross Finlayson Live Networks, Inc. http://www.live555.com/ __

Re: [Live-devel] Memory leak in ProxyServerMediaSession

2015-07-30 Thread Ross Finlayson
Thanks for the report. This is now fixed in the latest version (2015.07.31) of the “LIVE555 Streaming Media” code, released just now. Ross Finlayson Live Networks, Inc. http://www.live555.com/ ___ live-devel mailing list live-devel@lists.live555.com h

Re: [Live-devel] Memory leak detected

2013-07-13 Thread Ross Finlayson
Jianliang, Thanks for the report. Yes, you're correct - this is a memory leak (because response handlers should be deleting the 'response string'). THis will be fixed in the next release of the software. Ross Finlayson Live Networks, Inc. http://www.live555.com/ _

Re: [Live-devel] memory leak in RTSPClient::handleRequestError()

2013-02-28 Thread Ross Finlayson
> I'm developing a RTSP client application. While testing I've found a possible > memory leak in RTSPClient::handleRequestError(). While calling the handler > there is a string duplication of the error string. No, there's no memory leak here. In *all* calls to a RTSP "responseHandler" (includi

Re: [Live-devel] memory leak in RTSPClient when SETUP is processed

2012-01-27 Thread Ross Finlayson
> When the RTSPClient execute SETUP request, the sessionId is stored in the > MediaSubSession. And it gets delete[]d later, when the RTSPClient does a "TEARDOWN". So this isn't really a memory leak. However, I can see why "valgrind" might get confused by this. The "sessionId" field in "Media

Re: [Live-devel] Memory leak in BasicTaskScheduler0::scheduleDelayedTask

2011-01-03 Thread Ross Finlayson
It seems to be memory leak in BasicTaskScheduler0::scheduleDelayedTask. No there's not. AlarmHandler* alarmHandler = new AlarmHandler(proc, clientData, timeToDelay); // here! where is 'delete' It gets deleted later, when the handler gets called. (Note the "delete this" in the implement

Re: [Live-devel] memory leak

2010-11-02 Thread Ross Finlayson
and another question. what about MediaSubSession::sessionId. it was created was strDup. and where to delete it. This field is not managed by "MediSubsession" itself. Instead, it is assigned by "RTSPClient" while performing the RTSP "SETUP" command, and is deleted automatically later (again, b

Re: [Live-devel] memory leak

2010-11-02 Thread 44072429
:06 PM To: "LIVE555 Streaming Media - development & use"; Subject: Re: [Live-devel] memory leak >m_pUsageEnvironment = BasicUsageEnvironment::createNew(*m_pTaskScheduler); >if(m_pUsageEnvironment == NULL) >{ >service_error.init(service_error_type_failed,"BasicUsageE

Re: [Live-devel] memory leak

2010-11-02 Thread Ross Finlayson
m_pUsageEnvironment = BasicUsageEnvironment::createNew(*m_pTaskScheduler); if(m_pUsageEnvironment == NULL) { service_error.init(service_error_type_failed,"BasicUsageEnvironment::createNew failed"); return service_error; } and . how to delete this m_pUsageEnvironment; Objects of class "UsageEnv

Re: [Live-devel] memory leak

2010-11-02 Thread 44072429
nvironment; -- Original -- From: "Ross Finlayson"; Date: Tue, Nov 2, 2010 05:10 PM To: "LIVE555 Streaming Media - development & use"; Subject: Re: [Live-devel] memory leak >i don't know how to delete your variant. >and i saw ma

Re: [Live-devel] memory leak

2010-11-02 Thread Ross Finlayson
i don't know how to delete your variant. and i saw many strDup string.wouldn't delete at all. why are you doing this. or am i wrong usage? I'm sorry, but I don't really understand your question. Can you give a specific example of something that you think is a memory leak? -- Ross Finlayson Liv

Re: [Live-devel] memory leak using tcp

2010-06-11 Thread Ross Finlayson
Our simple solution for this is to prevent recreating the socket hash table in lookupSocketDescriptor when createIfNotFound is set to false and exiting with NULL before socketHashTable is called. OK, I think I have fixed this now in the latest release of the code (2010.06.11). -- Ross Finlay

Re: [Live-devel] memory leak using tcp

2010-06-11 Thread Alexandr Němec
Dear Ross & all, first of all, sorry for the broken link in my last response to this topic, the correct link follows below. My e-mail client has been playing around with the links. http://lists.live555.com/pipermail/live-devel/2005-September/003174.html Now. I can confirm, that this old prob

Re: [Live-devel] memory leak using tcp

2010-06-11 Thread Alexandr Němec
ail/live-devel/2005-September/003174.html issue I could not find any answer or solution neither. Best regards Alex __ Od: "Ross Finlayson" Komu: LIVE555 Streaming Media - development & use Datum: 11.06.2010 04:31 Předmět:

Re: [Live-devel] memory leak using tcp

2010-06-10 Thread Ross Finlayson
i built a RTSP-client with the latest source codes based on the openRTSP-example to receive H.264, MPEG4 and MJPEG-Streams. Using UDP, everything works fine and without memory leaks, but using TCP, there are four small memory leaks as reported earlier by Kamil in the following thread: http://l

Re: [Live-devel] Memory leak on closing client and sessions

2009-10-23 Thread Ross Finlayson
I created simple video stream (mpeg4) and I'm using FileSink as default sink. Everything is fine until I try to end all sessions and streaming. Everything ends and every subsession and session is closed but there still apears to be memory leak somwhere. I'm opening the stream like this: 1. Get

Re: [Live-devel] Memory leak

2009-07-26 Thread Ross Finlayson
In teardownMediaSubsession in RTSPClient, the subsession's sessionId variable is deleted and reset. However *only if* the teardown succeeds. If the teardown fails and the MediaSubsession is subsequently closed using the proper method, then the sessionId will not be freed. I suggest also del

Re: [Live-devel] Memory Leak while exiting from doEventLoop

2008-10-09 Thread Soumya P N
exiting from that loop,,,it will be great... Thanks, Soumya -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ross Finlayson Sent: Wednesday, October 08, 2008 7:47 PM To: LIVE555 Streaming Media - development & use Subject: Re: [Live-devel] Memory Leak w

Re: [Live-devel] Memory Leak while exiting from doEventLoop

2008-10-08 Thread Ross Finlayson
In the downloaded code the doEventLoop() was not exiting and it was a infinite loop. Now i changed the code so that it will exit on keyboard hit. Then also it is not exiting properly. What do you mean "not exiting properly"? Is "doEventLoop()" (when you add a 'watch variable' returning, or n

Re: [Live-devel] memory leak? some questions

2007-09-01 Thread Ross Finlayson
>1) why we have make sure the fRTPSink, fRTCPInstance, fRTPgs, >fRTCPgs is not NULL. After the SETUP, all of them must have been >allocated. No, not necessarily. If we are streaming via raw UDP (instead of via RTP/UDP), then "fRTPSink" and "fRTCPInstance" will be NULL (with "fUDPSink" being n