[Swan-commit] Changes to ref refs/heads/main

Andrew Cagney cagney at vault.libreswan.fi
Tue Mar 7 21:12:55 EET 2023


New commits:
commit b76b52c97bb69a0fdfcef5b3a35d514274b7d2a9
Author: Andrew Cagney <cagney at gnu.org>
Date:   Tue Mar 7 14:11:57 2023 -0500

    refcnt: trim #include list

commit 506005f70f540e44766bfe875bd9117b7a18fbfd
Author: Andrew Cagney <cagney at gnu.org>
Date:   Tue Mar 7 10:50:59 2023 -0500

    refcnt: revamp delref_where()
    
    Instead of a callback, return the pointer when it is the last ref
    for instance:
        del_foo(struct foo **fp)
        {
          struct foo *f = delref_where(fp, logger, HERE);
          if (f != NULL) {
            pfree(f);
          }
        }



More information about the Swan-commit mailing list