diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-24 04:41:58 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-02 21:37:09 +0200 |
commit | 3f94e061cbba13cdbf615b4ec5d96761185cd650 (patch) | |
tree | f9aaf838cbc6e525e56b6f2accd1f998791099af /libavcodec/imgconvert.c | |
parent | a01cf1fe5410f7db7a473821369506e27cf60044 (diff) | |
download | ffmpeg-3f94e061cbba13cdbf615b4ec5d96761185cd650.tar.gz |
avformat/libgme: Fix memleaks on errors
Also free the gme_info_t structure immediately after its use.
This simplifies cleanup, because it might be unsafe to call
gme_free_info(NULL) (or even worse, gme_track_info() might even
on error set the pointer to the gme_info_t structure to something
else than NULL).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 05457a3661371f7248b5602bf96c5011ab0b0d25)
Diffstat (limited to 'libavcodec/imgconvert.c')
0 files changed, 0 insertions, 0 deletions