Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auth: Properly finalize PKCS11 modules before releasing them
This gets rid of two leaks reported by LeakSanitizer when running our unit tests: ``` Direct leak of 48 byte(s) in 1 object(s) allocated from: #0 0x5fe6c6e7d099 in malloc (/pdns/pdns/testrunner+0x220099) (BuildId: 08d4c369b5f2f19f183aa5d6ab931a6653b70ab9) #1 0x7e6cdc6a0964 (/usr/lib/libp11-kit.so.0+0x36964) (BuildId: 307da6c0b5c7d87a1b0fd0a63e0bda93c9375e8a) Indirect leak of 72 byte(s) in 1 object(s) allocated from: #0 0x5fe6c6e7d401 in calloc (/pdns/pdns/testrunner+0x220401) (BuildId: 08d4c369b5f2f19f183aa5d6ab931a6653b70ab9) #1 0x7e6cdc6a09b6 (/usr/lib/libp11-kit.so.0+0x369b6) (BuildId: 307da6c0b5c7d87a1b0fd0a63e0bda93c9375e8a) ```
- Loading branch information