libFLAC has several places like this:

    if(0 == (ptr = realloc(ptr, size)))
        return false;

which results in memory leaks if realloc fails (the old value of ptr is lost).
The patch should fix this.

Attachment: realloc_memleak_fix.patch
Description: Binary data

_______________________________________________
flac-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to