Fixed a few more memory leaks
Fixed an integer overflow in my benchmark code