avformat/matroskadec: fix resource leak