From 5eba1fc812b3f2a7bbae0b12275736907e060484 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 18 Jul 2019 16:45:39 +0200 Subject: [PATCH] possible mem leak Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/b4567455d44d20af436553d7014b7d6bcc2ddb6d Author: Jacek Jendrzej Date: 2019-07-18 (Thu, 18 Jul 2019) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libeplayer3/container/container_ffmpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libeplayer3/container/container_ffmpeg.c b/libeplayer3/container/container_ffmpeg.c index e045a67..ae58f6f 100644 --- a/libeplayer3/container/container_ffmpeg.c +++ b/libeplayer3/container/container_ffmpeg.c @@ -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;