fixed memory leak and doubled const declare

- fixed Memory Leak 40B
- fixed const declare