valgrind

Problem with valgrind and dynamic allocation in C++

I have a program somewhat larger than this, I have selected the part that I can not solve, are errors that seem unfounded, I ... (N1), numbers that, in another part of the project, will serve to take an average according to the selected aggregation key.