Working on a bug in this program. There is a huge memory leak in one particular portion, and I've managed to trace the memory leak to a particular element. You see, the debugger keeps track of the individually allocated chunks that are lost, and the vast majority of them are chunks that are 6750000 bytes long.
The function that is supposed to handle the releasing of these blocks is returning an error code, and the error code does not correspond to any error code that they have listed.
The monkey, she dances.