I ran a report leakson the program that I am developing, with the following results:
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 'ê'
The fact is that I don’t even get attached to the security structure, and I don’t use any data types SecCertificateor SecKeychainItem(or any references to these data types, as far as I know). I don’t use a keychain at all. I have never seen this leak from my program during testing before; it just appeared today. Why do leaks report such a memory leak?
source
share