transcoder: fixed memory leak of pkt headers