]> source.dussan.org Git - rspamd.git/commitdiff
Fix memory leak in DKIM.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 13 May 2015 13:52:18 +0000 (14:52 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 13 May 2015 13:52:18 +0000 (14:52 +0100)
src/libserver/dkim.c

index b439661c2b10de3f7f9bc8606afd3ff87d74bc47..a171274e95025e8ca30425037b0eb242d66978cc 100644 (file)
@@ -882,6 +882,9 @@ rspamd_dkim_key_free (rspamd_dkim_key_t *key)
        if (key->key_rsa) {
                RSA_free (key->key_rsa);
        }
+       if (key->key_evp) {
+               EVP_PKEY_free (key->key_evp);
+       }
        if (key->key_bio) {
                BIO_free (key->key_bio);
        }