If a function returns an UnsafeMutablePointer is it our responsibility to destroy and dealloc?
问题 For example if I were to write this code: var t = time_t() time(&t) let x = localtime(&t) // returns UnsafeMutablePointer<tm> println("\(x.memory.tm_hour): \(x.memory.tm_min): \(x.memory.tm_sec)") ...would it also be necessary to also do the following? x.destroy() x.dealloc(1) Or did we not allocate the memory and so therefore don't need to dismiss it? Update #1: If we imagine a function that returns an UnsafeMutablePointer : func point() -> UnsafeMutablePointer<String> { let a =