Fix issue with not freeing constant strings