libavcodec/utils: Free threads on init failure
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 27 Aug 2019 15:21:00 +0000 (17:21 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 15 Sep 2019 22:04:18 +0000 (00:04 +0200)
commit61b055bed0968d60eb24a5080fb4ba2bcf73b753
tree5f1ab733d9c1a8dcc6e9ac36271ae74589734849
parent9fd62b84d57e2fa676f90eb843c2ecb1130427d5
libavcodec/utils: Free threads on init failure

Fixes: Multiple memleaks
Fixes: ffmpeg-memory-leak

Found-by: Francis Provencher <francis@protekresearchlab.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/utils.c