Re: [FFmpeg-devel] [PATCH 1/5] avformat/mpeg: Don't free unintialized pointer

2019-10-24 Thread James Almer
On 10/22/2019 10:16 AM, Andreas Rheinhardt wrote: > In order to fix a potential memleak upon failure, 0b8956b2 made sure that > a buffer given by a pointer was freed upon error. But this pointer was > only initialized upon use and in several cases (Clang gives no fewer > than 13 -Wsometimes-uniniti

[FFmpeg-devel] [PATCH 1/5] avformat/mpeg: Don't free unintialized pointer

2019-10-22 Thread Andreas Rheinhardt
In order to fix a potential memleak upon failure, 0b8956b2 made sure that a buffer given by a pointer was freed upon error. But this pointer was only initialized upon use and in several cases (Clang gives no fewer than 13 -Wsometimes-uninitialized warnings) this meant that an uninitialized pointer