-
- Downloads
Fix massive memory leak.
Commit 09669a08 introduced ds->cs.sock along side ds->socket. The code that closed the socket only set ds->cs.sock to -1, so the cleanup code (that looked at ds->socket) never realized it should free the message buffers. This commit removes ds->socket completely, and makes the cleanup code look if ds->cs.sock is -1. Memory usage now stays constant when looping 'pkcs11-tool --test --slot 0' at least.
Loading
Please register or sign in to comment