[Live-devel] our_MD5Data mismatched free

Ross Finlayson finlayson at live555.com
Mon Jan 13 12:00:27 PST 2014


> valgrind report mismatch between allocation and free :
> -       Authenticator::computeDigestResponse  call our_MD5Data that allocate using new char[]
> -       Authentificator::reclaimDisgestResponse call free on the buffer
>  
> Don’t you think it could be better to replace the “free” with “delete []” ?

Yes, that was my mistake.  I recently changed our MP5 code from C to C++ (and changed a "malloc()" to a "new()"), but forgot to change the corresponding "free()" to a "delete[]".

Thanks for the report.  I've just installed a new version (2014.01.13) that fixes this.


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20140113/c1ae4151/attachment.html>


More information about the live-devel mailing list