[Live-devel] memory leak in RTSPClient when SETUP is processed
PROMONET Michel
michel.promonet at thalesgroup.com
Fri Jan 27 10:24:02 PST 2012
Hi Ross,
When the RTSPClient execute SETUP request, the sessionId is stored in the MediaSubSession.
36 bytes in 4 blocks are definitely lost in loss record 469 of 573
(see: http://valgrind.org/docs/manual/mc-manual.html#mc-manual.leaks)
at 0x4C27939: operator new[](unsigned long) (vg_replace_malloc.c:305)
by 0xF100DD: strDup(char const*) (strDup.cpp:27)
by 0xECFE97: RTSPClient::handleSETUPResponse(MediaSubsession&, char const*, char const*, unsigned int) (RTSPClient.cpp:959)
by 0xED2010: RTSPClient::handleResponseBytes(int) (RTSPClient.cpp:1520)
by 0xED1230: RTSPClient::incomingDataHandler1() (RTSPClient.cpp:1318)
by 0xED11A6: RTSPClient::incomingDataHandler(void*, int) (RTSPClient.cpp:1311)
Obviously, it is possible to free these memory when we close the subsession adding in our code something like :
if (subsession->sessionId) delete []subsession->sessionId;
subsession->sessionId = NULL;
Let me now if you plan to free this memory somehow when MediaSession is deleted.
Best Regards,
Michel.
[@@THALES GROUP RESTRICTED@@]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120127/216805ca/attachment.html>
More information about the live-devel
mailing list