diff options
-rw-r--r-- | sys/opencrypto/cryptosoft.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/opencrypto/cryptosoft.c b/sys/opencrypto/cryptosoft.c index d251d96..9cd2250 100644 --- a/sys/opencrypto/cryptosoft.c +++ b/sys/opencrypto/cryptosoft.c @@ -1028,3 +1028,12 @@ swcr_init(void) #undef REGISTER } SYSINIT(cryptosoft_init, SI_SUB_PSEUDO, SI_ORDER_ANY, swcr_init, NULL) + +static void +swcr_uninit(void) +{ + + if (swcr_sessions != NULL) + FREE(swcr_sessions, M_CRYPTO_DATA); +} +SYSUNINIT(cryptosoft_uninit, SI_SUB_PSEUDO, SI_ORDER_ANY, swcr_uninit, NULL); |