[libav-bugs] [Bug 525] Optimize memory management for mp4 muxer

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Mon Jun 3 00:22:50 CEST 2013


https://bugzilla.libav.org/show_bug.cgi?id=525

--- Comment #8 from andysem at mail.ru 2013-06-03 00:22:50 CEST ---
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #5)
> > > 
> > > I also changed the reallocs to use a temp variable for the
> > > return value, to avoid leaking the old allocation if the realloc failed. (The
> > > current way the cluster array is reallocated has got the same potential leak.)
> > 
> > Isn't av_realloc (as opposed to realloc) supposed to fix exactly that leak?
> 
> No, av_realloc has the same semantics as plain realloc with respect to frees on
> failures.

Oh, I see. I guess I mixed it with av_realloc_f from ffmpeg.

Thanks for all your work.

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list