fix mem leak bug in cipher,because use register table error