I've been working on a library to split files into chunks, b64 encode, and upload them. It's all working fine, except somewhere in the process there is a memory leak. I've gone through my code line by line, and there's nothing I'm not clearing, I've even gone as far as removing the entire object and recreating it, but memory roughly the size of the chunks persist, until the app eventually crashes due to memory constraints.
Does anyone who what specifically is could cause these leaks, and any way to work around them?
Thanks
I've attached some screenshots of the memory allocations that wont go away from Instruments  