cafdec: free extradata before allocating it
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 12 May 2015 22:22:03 +0000 (00:22 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Wed, 13 May 2015 18:11:37 +0000 (20:11 +0200)
commitcb7c4f73e5e3debe2646279eaa7cfb493573118b
tree4a0a9a5d379c24f9c1fd51402bbacc9d84ed6e49
parenta3ede6b742f37d511253ab4c2fd98c13203f1cd3
cafdec: free extradata before allocating it

This fixes a memleak if read_kuki_chunk is executed more than once.

Reviewed-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavformat/cafdec.c