diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-11-10 05:07:29 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-12-19 23:35:09 +0100 |
commit | 99f505d2df521d83d53f7f9f9b359280f5af168b (patch) | |
tree | e1fbd599a770202220255f09b669109864887909 /libavcodec/hevcdec.c | |
parent | abf5e7bc212f4cc1e022907f92506ab33c19de44 (diff) | |
download | ffmpeg-99f505d2df521d83d53f7f9f9b359280f5af168b.tar.gz |
avformat/icecast: Free the right buffer on error
In case an AVBPrint was not complete, icecast_open() would free some
buffers that have not been allocated yet instead of freeing the data of
the AVBPrint (if they have been allocated). Because this error does not
trigger a jump to the general cleanup section any more, one can moreover
remove a (now unnecessary) initialization of a pointer.
Furthermore, finalizing an AVBPrint can fail (namely when the string
inside the AVBPrint has not been allocated yet) and so this needs to be
checked.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/hevcdec.c')
0 files changed, 0 insertions, 0 deletions