]> git.sesse.net Git - ffmpeg/commit
avformat/libgme: Fix memleaks on errors
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 24 Mar 2021 03:41:58 +0000 (04:41 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 26 Mar 2021 02:03:59 +0000 (03:03 +0100)
commit05457a3661371f7248b5602bf96c5011ab0b0d25
tree2837812fdc6ca1239eb618d201987088ee40d604
parent3ec3370deac4d21538ef03d8547a12f3acb7bfa8
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>
libavformat/libgme.c