Skip to content

Rdar example project demonstrating the string interpolation memory leak in the Response object.

License

Notifications You must be signed in to change notification settings

Alamofire/Rdar-StringInterpolationMemoryLeak

Repository files navigation

String Interpolation Memory Leak

This is a sample project put together to submit a Rdar for a string interpolation memory leak we've identified in the Alamofire 3.4.0 release.

Reproduction Details

Run the sample app with the Leaks instrument to produce the memory leak. Here are the following details:

  • iOS 9.3.1
  • Xcode 7.3.1 (7D1014)
  • Alamofire 3.4.0

Screenshot

Root Cause

The issue is caused by using string interpolation in the Timeline implementation of CustomStringConvertible and CustomDebugStringConvertible in Alamofire. Temporarily, we've moved over to string concatenation as a workaround to stop the leak in PR #1262.

Once the leak is fixed in Swift, we can move back to using string interpolation as that is certainly preferred.

Rdar

This issue has been filed as rdar://26761490 on 2016/06/12 and can be found on Open Radar here.

Resolution

This issue was resolved on Sept 1st, 2017 in Xcode 9 beta 6.

About

Rdar example project demonstrating the string interpolation memory leak in the Response object.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published