]> git.ipfire.org Git - thirdparty/bind9.git/commit
cfg_obj_t file is now a refcounted string
authorColin Vidal <colin@isc.org>
Tue, 21 Oct 2025 13:08:47 +0000 (15:08 +0200)
committerEvan Hunt <each@isc.org>
Thu, 23 Oct 2025 17:57:45 +0000 (10:57 -0700)
commit0d8c4044ab13e7d3b2dd0a7e25dbca34c08f2cdd
tree0251645d40a481824c3a3e5e2ad96c887145fcfa
parent09ad0ded7515657974a09dbfafdf5a63903ea250
cfg_obj_t file is now a refcounted string

In order to reduce the lifecycle dependency of a `cfg_obj_t` on its
parser, the `file` field needs its own reference count, so it isn't
deleted when the parser is.  It is now stored as a subsidiary
`cfg_obj_t` object of type string.
lib/isccfg/include/isccfg/grammar.h
lib/isccfg/parser.c