我针对我正在开发的程序运行了leaks
报告,结果如下:
Process 2454: 155054 nodes malloced for 7464 KB
Process 2454: 6 leaks for 608 total leaked bytes.
Leak: 0x14984360 size=160 zone: DefaultMallocZone_0x127000 instance of 'SecCertificate', type CFType, implemented in Security
0xa024562c 0x01015580 0x00000000 0xa0575c68 ,V$..U......h\W.
0x00000000 0x00000000 0x00000000 0x00000000 ................
0x0046d8cc 0x1492a480 0x00000000 0x4d555458 ..F.........XTUM
0x00000000 0x00000068 0x00000000 0x00000000 ....h...........
0x00000000 0x00000000 0x00000000 0x00000000 ................
0x00000000 0x00000000 0x00000000 0x00000000 ................
0x00000000 0x00000000 0x00000000 0x00000000 ................
0x00000000 0x00000000 0x00000000 0x00000000 ................
...
Leak: 0x1447cab0 size=144 zone: DefaultMallocZone_0x127000 string 'Ä'
Leak: 0x146b4010 size=96 zone: DefaultMallocZone_0x127000 instance of 'SecKeychainItem', type CFType, implemented in Security
0xa024562c 0x01015980 0x00000000 0xa0575de8 ,V$..Y.......]W.
0x00000000 0x00000000 0x00000000 0x00000000 ................
0x0046d8cc 0x1481dbb0 0x00000000 0x4d555458 ..F.........XTUM
0x00000000 0x00000068 0x00000000 0x00000000 ....h...........
0x00000000 0x00000000 0x00000000 0x00000000 ................
0x00000000 0x00000000 0x00000000 0x00000000 ................
Leak: 0x147ecf70 size=80 zone: DefaultMallocZone_0x127000 string 'Ä'
Leak: 0x1481dbb0 size=64 zone: DefaultMallocZone_0x127000 string 'O'
Leak: 0x1492a480 size=64 zone: DefaultMallocZone_0x127000 string 'ê'
问题是,我甚至没有链接到安全框架,我也没有使用SecCertificate
或SecKeychainItem
的任何数据类型(或根据我的知识引用这些数据类型的任何数据类型) 。我根本没有使用钥匙扣。在测试之前,我从未在程序中看到过此漏洞;它今天刚刚出现。为什么泄漏报告这样的内存泄漏?