]> git.ipfire.org Git - thirdparty/bind9.git/commit
simplify and regularize cfg_* functions
authorEvan Hunt <each@isc.org>
Wed, 22 Oct 2025 21:51:15 +0000 (14:51 -0700)
committerEvan Hunt <each@isc.org>
Thu, 23 Oct 2025 20:01:10 +0000 (13:01 -0700)
commit0db377da57b531279c327c558ee8451f91bbf93f
tree92602413aa158c7c48dcd8fb6c6341d4f11ac572
parent4f7f2dae59a757dc7d1ce1840beebc0f3183db8a
simplify and regularize cfg_* functions

- several functions that can no longer fail have been changed to
  type void, and unnecessary 'cleanup' sections were removed
- renamed cfg_create_obj() to cfg_obj_create(), and cfg_create_tuple()
  to cfg_tuple_create(), to match typical nomenclature.
- fixed a memory leak bug, in which an element could be removed
  from a list in delete_zoneconf() without being freed. this has
  been addressed by adding a cfg_list_unlink() function.
  list elements are now allocated based on the list they will
  be stored in, using the same mctx.
bin/named/server.c
lib/isccfg/include/isccfg/cfg.h
lib/isccfg/include/isccfg/grammar.h
lib/isccfg/namedconf.c
lib/isccfg/parser.c