File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -1584,11 +1584,10 @@ extension PythonFunction : PythonConvertible {
15841584 }
15851585}
15861586
1587- // The pointers here technically constitute a leak, but no more than
1588- // a static string or a static struct definition at top level.
15891587fileprivate extension PythonFunction {
15901588 static let sharedFunctionName : UnsafePointer < Int8 > = {
15911589 let name : StaticString = " pythonkit_swift_function "
1590+ // `utf8Start` is a property of StaticString, thus, it has a stable pointer.
15921591 return UnsafeRawPointer ( name. utf8Start) . assumingMemoryBound ( to: Int8 . self)
15931592 } ( )
15941593
@@ -1661,4 +1660,3 @@ struct PyMethodDef {
16611660 /// The __doc__ attribute, or NULL
16621661 public var ml_doc : UnsafePointer < Int8 > ?
16631662}
1664- >>>>>>> Squashed commit of the following:
You can’t perform that action at this time.
0 commit comments