trusteddomainproject / OpenARC

Open source ARC implementation
BSD 2-Clause "Simplified" License
135 stars 45 forks source link

arcf_config_free(): don't assert conf->conf_refcnt == 0 #147

Open glts opened 3 years ago

glts commented 3 years ago

See trusteddomainproject/OpenDKIM#22.

diff --git a/openarc/openarc.c b/openarc/openarc.c
--- a/openarc/openarc.c
+++ b/openarc/openarc.c
@@ -1326,7 +1326,6 @@ static void
 arcf_config_free(struct arcf_config *conf)
 {
        assert(conf != NULL);
-       assert(conf->conf_refcnt == 0);

        if (conf->conf_libopenarc != NULL)
                arc_close(conf->conf_libopenarc);