]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix cb_args memory leak in ns_query() error path
authorOndřej Surý <ondrej@isc.org>
Sat, 14 Mar 2026 11:53:29 +0000 (12:53 +0100)
committerOndřej Surý <ondrej@sury.org>
Mon, 16 Mar 2026 09:50:22 +0000 (10:50 +0100)
commitdc419568d1d0d7b05d532f8f0880bd5ec5a9cbf2
tree364e4eaa883d9ae288fce092c3e9af1ae33d5e79
parent109d10049539af26dcc7244e1f20e7ea135433d7
Fix cb_args memory leak in ns_query() error path

Initialize cb_args to NULL and free it in the cleanup path so it
is not leaked when the function fails after allocation.

(cherry picked from commit d7e1013741e3921f0f18246d15ef6f800ada77a2)
lib/dns/zone.c