]> git.sesse.net Git - ffmpeg/commit
avformat/hlsenc: Fix memleak when deleting old segments
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 8 Apr 2020 10:19:39 +0000 (12:19 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 8 Apr 2020 14:30:45 +0000 (16:30 +0200)
commitde8f6a403350dca74a4d395a2c8b85592138cf0c
tree447fe4f5526b0656f55f776d55bf7ea4bed305fa
parent95e9cf813e2610c0ffb39f5b276af6ea7f566315
avformat/hlsenc: Fix memleak when deleting old segments

if the directory name of the segments contains "%v".

This memleak is caused by masking the pointer that will eventually
be freed by a variable of the same name in a smaller scope.
Therefore the pointer that gets freed is always NULL when it is
freed and the allocated data leaks.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/hlsenc.c