[Live-devel] Memory leak in handleCmd_PLAY

Ross Finlayson finlayson at live555.com
Thu Jun 8 01:28:44 PDT 2023



> On Jun 8, 2023, at 5:03 PM, Meng Ruijie <ruijie_meng at u.nus.edu> 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, “valgrind” reported  that 160 bytes were “definitely lost”.  So what?  How do know that these 160 bytes would not have been freed later, had you not decided to modify the code to call “exit()”?  And you didn’t say what those 160 bytes were, and where they were allocated.

Please don’t bother posting random output from “valgrind”, unless you also specifically identify a problem in the code.


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




More information about the live-devel mailing list