[Live-devel] RTSP Authentication memory leak

Ross Finlayson finlayson at live555.com
Sun Jun 12 14:34:44 PDT 2011


>  I am using live555 for last few months. Last week I downloaded the
>latest archive. Now when i integrate it, from valgrind I have some
>memory leak problem. For RTSPClient.cpp sendPlayCommand,
>sendSetupCommand, sendOptionsCommand and sendDescribeCommand the
>statement "if (authenticator != NULL) fCurrentAuthenticator =
>*authenticator;" allocated the the memory for the overloaded operartor
>"=". But memory is not deleted. The previous versions don't have this
>problem. I cannot access the class as i inherited my own client from it.
>Any idea about this...

Thanks for the note.  There was a bug in 
"Authenticator::operator=()": We weren't freeing the left-hand-side 
object's memory before assigning to it.

This will be fixed in the next release of the software.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list