I\'m utilizing a library written by a collegue and discovered that valgrind was spewing out errors related to the delete.
valgrind
delete
The problem was t
If you allocate an array using new[], you have to destroy it using delete[]. In general, the functions operator delete(void*) and operator delete[](void*) aren't guaranteed to be the same.
new[]
delete[]
operator delete(void*)
operator delete[](void*)
Refer here