You should try cppcheck 1.64 at least. `constStatement:*` is due to more aggressive options, but memleak isn't. Also 1.61 cannot find leak I fixed here. Anyway someone can run cppcheck with those options in future (including me).