Fixed a potential memory leak (not to worry, it's