[Live-devel] RTSPClient::registerStream() related leaks
Micha Kalfon
micha at tokagroup.com
Wed Dec 4 05:25:56 PST 2019
It seems like there are two leaks in the implementation of REGISTER and
DEREGISTER command in the RTSPServer.
1. In liveMedia/RTSPServerRegister.cpp in the handleResponse() method of
the RegisterRequestRecord and DeregisterRequestRecord classes the last
statement is:
> delete this;
This will destroy the Medium object but will not remove it from the
MediaLookupTable. I think a simple fix to this would be to do:
> Medium::close(this);
instead.
2. The rtspURLToRegister parameter passed to the RegisterRequestRecord
and DeregisterRequestRecord constructors is the return value of the
RTSPServer::rtspURL() method which is dynamically allocated and never gets
freed.
Regards,
--
Micha Kalfon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20191204/bbb7298f/attachment.htm>
More information about the live-devel
mailing list