|
From: Markus K. <ko...@rr...> - 2013-09-22 09:39:19
|
Hi, sorry for the noise ... I forgot to free the structures I use to free the PKCS11_ structures. Updated numbers below. On 09/22/2013 11:19 AM, Markus Kötter wrote: > On 09/22/2013 10:43 AM, Markus Kötter wrote: >> engine_pkcs11 free's the mallocs claimed by PKCS11_ structures. >> https://github.com/commonism/engine_pkcs11/commit/fbae0727e88fd20e1cba6ec60799dc4fe705cf97 https://github.com/commonism/engine_pkcs11/commit/efb57ad95c5c23b3be148bc8078b11367a445625 > Combined savings when ... .. > loading 1000 keys > > before: > ==12675== LEAK SUMMARY: > ==12675== definitely lost: 82,329 bytes in 1,011 blocks > ==12675== indirectly lost: 7,044,290 bytes in 146,860 blocks > ==12675== possibly lost: 8,196 bytes in 151 blocks > ==12675== still reachable: 1,684 bytes in 4 blocks > ==12675== suppressed: 0 bytes in 0 blocks > > after: > ==13261== LEAK SUMMARY: > ==13261== definitely lost: 50,409 bytes in 1,012 blocks > ==13261== indirectly lost: 406 bytes in 10 blocks > ==13261== possibly lost: 0 bytes in 0 blocks > ==13261== still reachable: 1,684 bytes in 4 blocks > ==13261== suppressed: 0 bytes in 0 blocks after freeing my own memory: ==13686== LEAK SUMMARY: ==13686== definitely lost: 2,409 bytes in 12 blocks ==13686== indirectly lost: 406 bytes in 10 blocks ==13686== possibly lost: 0 bytes in 0 blocks ==13686== still reachable: 1,684 bytes in 4 blocks ==13686== suppressed: 0 bytes in 0 blocks > The remaining leaks are burried in OpenSC itself, and may depend on the > card used, I used a Feitian PKI Smartcard. MfG Markus |