On Mon, Jan 02, 2023 at 07:32:51PM -0500, Wietse Venema wrote:

> > I was just curious what might cause that string of question marks. 
> 
> This is what a Postfix string looks like after its memory is freed.
> Something to look at in the train tomorrow.

Simple patch, the cache dictionary name is freed a bit too soon during
shutdown:

--- src/util/dict_cache.c
+++ src/util/dict_cache.c
@@ -659,8 +659,8 @@ void    dict_cache_close(DICT_CACHE *cp)
     /*
      * Destroy the DICT_CACHE object.
      */
-    myfree(cp->name);
     dict_cache_control(cp, DICT_CACHE_CTL_INTERVAL, 0, DICT_CACHE_CTL_END);
+    myfree(cp->name);
     dict_close(cp->db);
     if (cp->saved_curr_key)
        myfree(cp->saved_curr_key);

-- 
    Viktor.

Reply via email to