[FFmpeg-devel] [PATCH] frame: add an av_frame_new_side_data_from_buf function

James Almer jamrial at gmail.com
Thu Mar 1 21:19:34 EET 2018

On 3/1/2018 3:58 PM, Rostislav Pehlivanov wrote:
> Also fixes a theoretical memory leak in av_frame_new_side_data_from_buf
> where if ret was successfully allocated but the realloc call failed,
> ret wouldn't be freed.

Currently, if realloc fails, ret is never allocated to begin with.

There's no leak at all in any circumstances right now. That change
you're trying to make is unnecessary.

More information about the ffmpeg-devel mailing list