Fixed a memory leak and it should no longer cause kernel panics.