Standard of decoding process,but have a memory leak