Why is this a memory leak from valgrind?
I am creating a program and while dynamically allocating an integer array, i try to delete the array from the heap in the same function I create it in. But valgrind is saying there are 20 bytes definitely lost/in use at exit. Here is the function: int whoStarts(Parent* parents, int num){ int* connects = new… Read More Why is this a memory leak from valgrind?