Cleaned some memory leaks that were definitely not there due to lack of negligence on my behalf