Hi, Thanks for your reply!
But would delete[] be better? ==11==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new [] vs operator delete) on 0x621000001500 #0 0x4c46ed in operator delete(void*) (/home/ubuntu/live/testProgs/testOnDemandRTSPServer+0x4c46ed) #1 0x57309e in AC3AudioStreamParser::~AC3AudioStreamParser() /home/ubuntu/live/liveMedia/AC3AudioStreamFramer.cpp:227:3 #2 0x57309e in AC3AudioStreamParser::~AC3AudioStreamParser() /home/ubuntu/live/liveMedia/AC3AudioStreamFramer.cpp:226:47 #3 0x571142 in AC3AudioStreamFramer::~AC3AudioStreamFramer() /home/ubuntu/live/liveMedia/AC3AudioStreamFramer.cpp:96:3 #4 0x571142 in AC3AudioStreamFramer::~AC3AudioStreamFramer() /home/ubuntu/live/liveMedia/AC3AudioStreamFramer.cpp:95:47 #5 0x5ad7da in OnDemandServerMediaSubsession::sdpLines(int) /home/ubuntu/live/liveMedia/OnDemandServerMediaSubsession.cpp:77:5 #6 0x5096b6 in ServerMediaSession::generateSDPDescription(int) /home/ubuntu/live/liveMedia/ServerMediaSession.cpp:254:42 #7 0x4d2f13 in RTSPServer::RTSPClientConnection::handleCmd_DESCRIBE_afterLookup(ServerMediaSession*) /home/ubuntu/live/liveMedia/RTSPServer.cpp:380:31 #8 0x4d2270 in RTSPServer::RTSPClientConnection::handleCmd_DESCRIBE(char const*, char const*, char const*) /home/ubuntu/live/liveMedia/RTSPServer.cpp:356:14 #9 0x4d82b0 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/live/liveMedia/RTSPServer.cpp:796:2 #10 0x4ccfdd in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/live/liveMedia/GenericMediaServer.cpp:291:3 #11 0x4ccfdd in GenericMediaServer::ClientConnection::incomingRequestHandler(void*, int) /home/ubuntu/live/liveMedia/GenericMediaServer.cpp:284:15 #12 0x5f9866 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2 #13 0x5ffdb9 in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:80:5 #14 0x4c897d in main /home/ubuntu/live/testProgs/testOnDemandRTSPServer.cpp:442:24 #15 0x7ffff6b6383f in __libc_start_main /build/glibc-S7Ft5T/glibc-2.23/csu/../csu/libc-start.c:291 #16 0x41c1d8 in _start (/home/ubuntu/live/testProgs/testOnDemandRTSPServer+0x41c1d8) 0x621000001500 is located 0 bytes inside of 4000-byte region [0x621000001500,0x6210000024a0) allocated by thread T0 here: #0 0x4c3f9d in operator new[](unsigned long) (/home/ubuntu/live/testProgs/testOnDemandRTSPServer+0x4c3f9d) #1 0x571245 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/live/liveMedia/AC3AudioStreamFramer.cpp:307:37 #2 0x571245 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/live/liveMedia/AC3AudioStreamFramer.cpp:112:14 SUMMARY: AddressSanitizer: alloc-dealloc-mismatch (/home/ubuntu/live/testProgs/testOnDemandRTSPServer+0x4c46ed) in operator delete(void*) Best regards, Jinsheng Ba -----Original Message----- From: live-devel <live-devel-boun...@us.live555.com> On Behalf Of Ross Finlayson Sent: Saturday, August 14, 2021 12:48 AM To: LIVE555 Streaming Media - development & use <live-de...@us.live555.com> Subject: Re: [Live-devel] Memory Leak in AC3AudioStreamFramer - External Email - 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.live555.com/mailman/listinfo/live-devel _______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel