Subject: Leaks are still possible in hook--depth-alist

From: [email-masked]
Date: Wed, 26 May 2021 10:57:47 +0200

(with-temp-buffer
      (add-hook 'post-command-hook (make-symbol "fun-sym") 77 t))
    (get 'post-command-hook 'hook--depth-alist)

Perhaps hook--depth-alist could be a hash table with weak keys.

Best regards.