I'm experiencing memory leaks in my C++ application. I've been using Valgrind but still can't pinpoint the exact issue.
The leak seems to occur when I'm handling dynamic arrays. Here's a simplified version of my code:
Am I missing something obvious?
The leak seems to occur when I'm handling dynamic arrays. Here's a simplified version of my code:
vector<int>* data = new vector<int>();Am I missing something obvious?