From: Willem Toorop Date: Sun, 21 Dec 2025 14:29:52 +0000 (+0100) Subject: Fix a memory leak in ldns-notify X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ddfc4c894225c3d20fc20d9128487f9bf951f97;p=thirdparty%2Fldns.git Fix a memory leak in ldns-notify --- diff --git a/Changelog b/Changelog index 41b63cbb..a44ac76e 100644 --- a/Changelog +++ b/Changelog @@ -1,7 +1,8 @@ 1.9.1 2026-??-?? * Fix #290: ldns-verify-zone prints to stdout instead of myerr Thanks RoyArends - + * Fix memory leak in ldns-notify + 1.9.0 2025-12-04 * PR #246: Make ldns_calc_keytag() available for CDNSKEY RR Thanks tgreenx and pnax diff --git a/examples/ldns-notify.c b/examples/ldns-notify.c index 0c4f68df..60b95d53 100644 --- a/examples/ldns-notify.c +++ b/examples/ldns-notify.c @@ -312,11 +312,10 @@ main(int argc, char **argv) if(include_soa) { char buf[10240]; ldns_rr *soa_rr=NULL; - ldns_rdf *prev=NULL; snprintf(buf, sizeof(buf), "%s 3600 IN SOA . . %u 0 0 0 0", zone_name, (unsigned)soa_version); /*printf("Adding soa %s\n", buf);*/ - status = ldns_rr_new_frm_str(&soa_rr, buf, 3600, NULL, &prev); + status = ldns_rr_new_frm_str(&soa_rr, buf, 3600, NULL, NULL); if(status != LDNS_STATUS_OK) { printf("Error adding SOA version: %s\n", ldns_get_errorstr_by_id(status));