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>
Thu, 14 May 2015 17:14:32 +0000 (19:14 +0200)
commit73cf5d9a2853f1bc1f4a0d884c880cda51aa7b28
treeb883af664740381818dcd256ff4c4b7a5cd90c20
parentac8339928111314c520d9aa05816dc451d2f8d50
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>
(cherry picked from commit cb7c4f73e5e3debe2646279eaa7cfb493573118b)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavformat/cafdec.c