1

我构建了一个 iPad 应用程序并使用 XCode 对其进行分析,我在 Security 框架中遇到了内存泄漏,以下是 Instruments 中的一些:

Leaked Object   #   Address Size    Responsible Library Responsible Frame
Malloc 128 Bytes,4  < multiple >    512 Bytes   Security    mp_init
 Malloc 128 Bytes,  0x824aa70   128 Bytes   Security    mp_init
 Malloc 128 Bytes,  0x824a9f0   128 Bytes   Security    mp_init
 Malloc 128 Bytes,  0x824a970   128 Bytes   Security    mp_init
 Malloc 128 Bytes,  0x824a8f0   128 Bytes   Security    mp_init

Leaked Object   #   Address Size    Responsible Library Responsible Frame
Malloc 16 Bytes,4   < multiple >    64 Bytes    Security    init
 Malloc 16 Bytes,   0x824a550   16 Bytes    Security    init
 Malloc 16 Bytes,   0x824a540   16 Bytes    Security    init
 Malloc 16 Bytes,   0x82493d0   16 Bytes    Security    init
 Malloc 16 Bytes,   0x8237ca0   16 Bytes    Security    init

和一些细节:

#   Category    Event Type  Timestamp   RefCt   Address Size    Responsible Library Responsible Caller
0   Malloc 128 Bytes    Malloc  00:02.240.888   1   0x824aa70   128 Security    mp_init

#   Category    Event Type  Timestamp   RefCt   Address Size    Responsible Library Responsible Caller
0   Malloc 16 Bytes Malloc  00:02.240.886   1   0x824a550   16  Security    init

我在我的应用程序中使用 ASIHTTP、FMDatabase 和其他一些框架(我认为它们不会导致问题),并且在“Link Binary With Libraries”中没有安全框架,所以我不知道出了什么问题。

任何人都可以找出可能导致泄漏的原因吗?

4

0 回答 0