Fixed some memory leaks in GetString.bf unit test