mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
possible mem leak
This commit is contained in:
@@ -1520,6 +1520,7 @@ AVIOContext *container_ffmpeg_get_avio_context(CustomIOCtx_t *custom_io, size_t
|
||||
avio_ctx = avio_alloc_context(avio_ctx_buffer, avio_ctx_buffer_size, 0, custom_io, &SAM_ReadFunc, NULL, &SAM_SeekFunc);
|
||||
if (!avio_ctx)
|
||||
{
|
||||
av_free(avio_ctx_buffer);
|
||||
return NULL;
|
||||
}
|
||||
return avio_ctx;
|
||||
|
Reference in New Issue
Block a user