简体   繁体   中英

Memory Leak in iOS

I have a memory leak in my iOS app which sometimes causes it to crash. The Leak is found here. Would anyone know how i would debug this?

 0  0x269760    Malloc 32 Bytes Malloc  1   00:03.718.759   32  libsystem_info.dylib    si_item_to_addrinfo

One 32 byte leak is not going to cause a memory consumption jetsam.

First, post the backtrace of the crash(es). Secondly, use the Allocations instrument to see if memory is accreting over time.

If memory is accreting and you have some repeated action (say, visiting a bit of UI and returning to the main screen of your app), Heapshot analysis can do wonders.

For me, it's the Testflight SDK 1.1. When I comment out the [TestFlight takeoff:] method, the leak doesn't appear anymore.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM