ldns-1.8.4-8.fc44

List of Findings

Error: SHELLCHECK_WARNING (CWE-563): [#def1]
/usr/bin/ldns-config:3:1: warning[SC2034]: prefix appears unused. Verify use (or export if used externally).
#    1|   #!/usr/bin/sh
#    2|   
#    3|-> prefix="/usr"
#    4|   exec_prefix="/usr"
#    5|   VERSION="1.8.4"

Error: SHELLCHECK_WARNING (CWE-563): [#def2]
/usr/bin/ldns-config:4:1: warning[SC2034]: exec_prefix appears unused. Verify use (or export if used externally).
#    2|   
#    3|   prefix="/usr"
#    4|-> exec_prefix="/usr"
#    5|   VERSION="1.8.4"
#    6|   CPPFLAGS=" "

Error: SHELLCHECK_WARNING (CWE-563): [#def3]
/usr/bin/ldns-config:6:1: warning[SC2034]: CPPFLAGS appears unused. Verify use (or export if used externally).
#    4|   exec_prefix="/usr"
#    5|   VERSION="1.8.4"
#    6|-> CPPFLAGS=" "
#    7|   PYTHON_CPPFLAGS="-I/usr/include/python3.14"
#    8|   PYTHON_LDFLAGS=" -lpython3.14"

Error: SHELLCHECK_WARNING (CWE-88): [#def4]
/usr/bin/ldns-config:29:12: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
#   27|   LDFLAGS=" -Wl,-z,now -pie -L$LIBDIR"
#   28|   
#   29|-> for arg in $@
#   30|   do
#   31|       if [ $arg = "--cflags" ]

Error: CPPCHECK_WARNING (CWE-457): [#def5]
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.c:2046: error[uninitvar]: Uninitialized variable: RETVAL
# 2044|   	}
# 2045|   #line 2046 "LDNS.c"
# 2046|-> 	ST(0) = boolSV(RETVAL);
# 2047|       }
# 2048|       XSRETURN(1);

Error: COMPILER_WARNING (CWE-681): [#def6]
/usr/lib64/perl5/CORE/perl.h:6199: included_from: Included from here.
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.c: scope_hint: In function ‘XS_DNS__LDNS__Key_ldns_key_hmac_key’
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.c:12268:29: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘Perl_sv_setpv’ differ in signedness
#12268 |         sv_setpv((SV*)TARG, RETVAL);
#      |                             ^~~~~~
#      |                             |
#      |                             unsigned char *
/usr/lib64/perl5/CORE/embed.h:745:71: note: in definition of macro ‘sv_setpv’
#  745 | # define sv_setpv(a,b)                          Perl_sv_setpv(aTHX_ a,b)
#      |                                                                       ^
/usr/lib64/perl5/CORE/perl.h:6160: included_from: Included from here.
/usr/lib64/perl5/CORE/proto.h:4858:55: note: expected ‘const char * const’ but argument is of type ‘unsigned char *’
# 4858 | Perl_sv_setpv(pTHX_ SV * const sv, const char * const ptr);
#      |                                    ~~~~~~~~~~~~~~~~~~~^~~
#12266|   
#12267|   	RETVAL = ldns_key_hmac_key(key);
#12268|-> 	sv_setpv((SV*)TARG, RETVAL);
#12269|   	ST(0) = TARG;
#12270|       }

Error: COMPILER_WARNING (CWE-563): [#def7]
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.xs: scope_hint: In function ‘XS_DNS__LDNS__Zone_canonicalize’
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.xs:393:20: warning[-Wunused-but-set-variable]: variable ‘count’ set but not used
#  393 |             size_t count;
#      |                    ^~~~~
#  391|   	PREINIT:
#  392|   	    ldns_rr_list *list;
#  393|-> 	    size_t count;
#  394|   	    size_t i;
#  395|   	CODE:

Error: COMPILER_WARNING (CWE-681): [#def8]
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.xs: scope_hint: In function ‘XS_DNS__LDNS__Zone_sign_nsec3’
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.xs:452:91: warning[-Wpointer-sign]: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
#  452 |         RETVAL = ldns_zone_sign_nsec3(zone, keylist, algorithm, flags, iterations, strlen(salt), (uint8_t*)salt);
#      |                                                                                           ^~~~
#      |                                                                                           |
#      |                                                                                           unsigned char *
/usr/lib64/perl5/CORE/perl.h:1697: included_from: Included from here.
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.xs:2: included_from: Included from here.
/usr/include/string.h:414:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
#  414 | extern size_t strlen (const char *__s)
#      |                       ~~~~~~~~~~~~^~~
#  450|   	unsigned char * salt;
#  451|   	CODE:
#  452|-> 	RETVAL = ldns_zone_sign_nsec3(zone, keylist, algorithm, flags, iterations, strlen(salt), (uint8_t*)salt);
#  453|   	OUTPUT:
#  454|   	RETVAL

Error: COMPILER_WARNING (CWE-457): [#def9]
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.xs: scope_hint: In function ‘XS_DNS__LDNS__RR__verify_denial_nsec3_match’
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.xs:1200:18: warning[-Wmaybe-uninitialized]: ‘match’ may be used uninitialized
# 1200 |         status = ldns_dnssec_verify_denial_nsec3_match(rr, nsecs, rrsigs,
#      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1201 |             packet_rcode, packet_qtype, packet_nodata, match);
#      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.xs:1197:24: note: ‘match’ was declared here
# 1197 |             ldns_rr ** match;
#      |                        ^~~~~
# 1198|   	CODE:
# 1199|   	RETVAL = NULL;
# 1200|-> 	status = ldns_dnssec_verify_denial_nsec3_match(rr, nsecs, rrsigs, 
# 1201|   	    packet_rcode, packet_qtype, packet_nodata, match);
# 1202|   	if (status == LDNS_STATUS_OK) {

Error: CPPCHECK_WARNING (CWE-457): [#def10]
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.xs:1201: error[uninitvar]: Uninitialized variable: match
# 1199|   	RETVAL = NULL;
# 1200|   	status = ldns_dnssec_verify_denial_nsec3_match(rr, nsecs, rrsigs, 
# 1201|-> 	    packet_rcode, packet_qtype, packet_nodata, match);
# 1202|   	if (status == LDNS_STATUS_OK) {
# 1203|   	    RETVAL = *match;

Error: CPPCHECK_WARNING (CWE-476): [#def11]
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.xs:2315: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buff
# 2313|   	for (i = 0; i <= av_len(rtt); i++) {
# 2314|   	    elem = av_fetch(rtt, i, 0);
# 2315|-> 	    buff[i] = SvUV(*elem);
# 2316|   	}
# 2317|   	ldns_resolver_set_rtt(resolver, buff);

Error: COMPILER_WARNING (CWE-563): [#def12]
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.xs:2398:31: warning[-Wunused-variable]: unused variable ‘ret’
# 2398 |             DNS__LDNS__RRList ret;
#      |                               ^~~
# 2396|           PREINIT:
# 2397|               DNS__LDNS__RRList trusted;
# 2398|-> 	    DNS__LDNS__RRList ret;
# 2399|   	    size_t i;
# 2400|   	CODE:

Error: COMPILER_WARNING (CWE-563): [#def13]
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.xs: scope_hint: In function ‘XS_DNS__LDNS__Resolver__fetch_valid_domain_keys’
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.xs:2399:20: warning[-Wunused-variable]: unused variable ‘i’
# 2399 |             size_t i;
#      |                    ^
# 2397|               DNS__LDNS__RRList trusted;
# 2398|   	    DNS__LDNS__RRList ret;
# 2399|-> 	    size_t i;
# 2400|   	CODE:
# 2401|   	RETVAL = NULL;

Error: COMPILER_WARNING (CWE-563): [#def14]
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.xs:2420:31: warning[-Wunused-variable]: unused variable ‘ret’
# 2420 |             DNS__LDNS__RRList ret;
#      |                               ^~~
# 2418|           PREINIT:
# 2419|               DNS__LDNS__RRList trusted;
# 2420|-> 	    DNS__LDNS__RRList ret;
# 2421|   	    size_t i;
# 2422|   	CODE:

Error: COMPILER_WARNING (CWE-563): [#def15]
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.xs: scope_hint: In function ‘XS_DNS__LDNS__Resolver__fetch_valid_domain_keys_time’
ldns-1.8.4/ldns-1.8.4_python3/contrib/DNS-LDNS/LDNS.xs:2421:20: warning[-Wunused-variable]: unused variable ‘i’
# 2421 |             size_t i;
#      |                    ^
# 2419|               DNS__LDNS__RRList trusted;
# 2420|   	    DNS__LDNS__RRList ret;
# 2421|-> 	    size_t i;
# 2422|   	CODE:
# 2423|   	RETVAL = NULL;

Error: CPPCHECK_WARNING (CWE-457): [#def16]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:872: warning[uninitvar]: Uninitialized variable: buff
#  870|       *r = 0;
#  871|     }
#  872|->   return buff;
#  873|   }
#  874|   

Error: CPPCHECK_WARNING (CWE-476): [#def17]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:1901: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
# 1899|       SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
# 1900|       /* the klass element */
# 1901|->     data->klass = obj;
# 1902|       SWIG_Py_INCREF(data->klass);
# 1903|       /* the newraw method and newargs arguments used to create a new raw instance */

Error: CPPCHECK_WARNING (CWE-476): [#def18]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:1902: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
# 1900|       /* the klass element */
# 1901|       data->klass = obj;
# 1902|->     SWIG_Py_INCREF(data->klass);
# 1903|       /* the newraw method and newargs arguments used to create a new raw instance */
# 1904|       if (PyClass_Check(obj)) {

Error: CPPCHECK_WARNING (CWE-476): [#def19]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:3590: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: res
# 3588|   {
# 3589|           struct timeval* res = (struct timeval*)malloc(sizeof(*res));
# 3590|->         res->tv_sec = sec;
# 3591|           res->tv_usec = usec;
# 3592|           return res;

Error: CPPCHECK_WARNING (CWE-476): [#def20]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:3591: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: res
# 3589|           struct timeval* res = (struct timeval*)malloc(sizeof(*res));
# 3590|           res->tv_sec = sec;
# 3591|->         res->tv_usec = usec;
# 3592|           return res;
# 3593|   }

Error: CPPCHECK_WARNING (CWE-457): [#def21]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:11353: error[legacyUninitvar]: Uninitialized variable: arg2
#11351|     }
#11352|     arg3 = (struct tm *)(argp3);
#11353|->   result = (struct tm *)ldns_serial_arithmetics_gmtime_r(arg1,arg2,arg3);
#11354|     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_tm, 0 |  0 );
#11355|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def22]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:16144: error[legacyUninitvar]: Uninitialized variable: arg3
#16142|       }
#16143|     }
#16144|->   result = (ldns_dnssec_trust_tree *)ldns_dnssec_derive_trust_tree_time(arg1,arg2,arg3);
#16145|     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ldns_dnssec_trust_tree_struct, 0 |  0 );
#16146|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def23]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:16234: error[legacyUninitvar]: Uninitialized variable: arg4
#16232|       }
#16233|     }
#16234|->   ldns_dnssec_derive_trust_tree_normal_rrset_time(arg1,arg2,arg3,arg4);
#16235|     resultobj = SWIG_Py_Void();
#16236|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def24]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:16340: error[legacyUninitvar]: Uninitialized variable: arg5
#16338|       }
#16339|     }
#16340|->   ldns_dnssec_derive_trust_tree_dnskey_rrset_time(arg1,arg2,arg3,arg4,arg5);
#16341|     resultobj = SWIG_Py_Void();
#16342|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def25]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:16430: error[legacyUninitvar]: Uninitialized variable: arg4
#16428|       }
#16429|     }
#16430|->   ldns_dnssec_derive_trust_tree_ds_rrset_time(arg1,arg2,arg3,arg4);
#16431|     resultobj = SWIG_Py_Void();
#16432|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def26]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:16504: error[legacyUninitvar]: Uninitialized variable: arg3
#16502|       }
#16503|     }
#16504|->   ldns_dnssec_derive_trust_tree_no_sig_time(arg1,arg2,arg3);
#16505|     resultobj = SWIG_Py_Void();
#16506|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def27]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:16643: error[legacyUninitvar]: Uninitialized variable: arg4
#16641|     }
#16642|     arg5 = (ldns_rr_list *)(argp5);
#16643|->   result = (ldns_status)ldns_verify_time((struct ldns_struct_rr_list const *)arg1,(struct ldns_struct_rr_list const *)arg2,(struct ldns_struct_rr_list const *)arg3,arg4,arg5);
#16644|     resultobj = SWIG_From_int((int)(result));
#16645|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def28]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:16828: error[legacyUninitvar]: Uninitialized variable: arg4
#16826|     }
#16827|     arg5 = (ldns_status *)(argp5);
#16828|->   result = (ldns_rr_list *)ldns_fetch_valid_domain_keys_time((struct ldns_struct_resolver const *)arg1,(struct ldns_struct_rdf const *)arg2,(struct ldns_struct_rr_list const *)arg3,arg4,arg5);
#16829|     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ldns_struct_rr_list, 0 |  0 );
#16830|     Py_XDECREF(arg2_bytes);

Error: CPPCHECK_WARNING (CWE-457): [#def29]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:16952: error[legacyUninitvar]: Uninitialized variable: arg4
#16950|       }
#16951|     }
#16952|->   result = (ldns_rr_list *)ldns_validate_domain_dnskey_time((struct ldns_struct_resolver const *)arg1,(struct ldns_struct_rdf const *)arg2,(struct ldns_struct_rr_list const *)arg3,arg4);
#16953|     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ldns_struct_rr_list, 0 |  0 );
#16954|     Py_XDECREF(arg2_bytes);

Error: CPPCHECK_WARNING (CWE-457): [#def30]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:17076: error[legacyUninitvar]: Uninitialized variable: arg4
#17074|       }
#17075|     }
#17076|->   result = (ldns_rr_list *)ldns_validate_domain_ds_time((struct ldns_struct_resolver const *)arg1,(struct ldns_struct_rdf const *)arg2,(struct ldns_struct_rr_list const *)arg3,arg4);
#17077|     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ldns_struct_rr_list, 0 |  0 );
#17078|     Py_XDECREF(arg2_bytes);

Error: CPPCHECK_WARNING (CWE-457): [#def31]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:17186: error[legacyUninitvar]: Uninitialized variable: arg4
#17184|     }
#17185|     arg5 = (ldns_rr_list *)(argp5);
#17186|->   result = (ldns_status)ldns_verify_trusted_time(arg1,arg2,arg3,arg4,arg5);
#17187|     resultobj = SWIG_From_int((int)(result));
#17188|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def32]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:17576: error[legacyUninitvar]: Uninitialized variable: arg4
#17574|     }
#17575|     arg5 = (ldns_rr_list *)(argp5);
#17576|->   result = (ldns_status)ldns_verify_rrsig_keylist_time((struct ldns_struct_rr_list const *)arg1,(struct ldns_struct_rr const *)arg2,(struct ldns_struct_rr_list const *)arg3,arg4,arg5);
#17577|     resultobj = SWIG_From_int((int)(result));
#17578|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def33]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:17715: error[legacyUninitvar]: Uninitialized variable: arg4
#17713|       }
#17714|     }
#17715|->   result = (ldns_status)ldns_verify_rrsig_time(arg1,arg2,arg3,arg4);
#17716|     resultobj = SWIG_From_int((int)(result));
#17717|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def34]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:23916: error[legacyUninitvar]: Uninitialized variable: arg4
#23914|     }
#23915|     arg6 = (size_t *)(argp6);
#23916|->   result = (ldns_status)ldns_udp_send(arg1,arg2,(struct sockaddr_storage const *)arg3,arg4,arg5,arg6);
#23917|     resultobj = SWIG_From_int((int)(result));
#23918|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def35]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:23916: error[legacyUninitvar]: Uninitialized variable: arg5
#23914|     }
#23915|     arg6 = (size_t *)(argp6);
#23916|->   result = (ldns_status)ldns_udp_send(arg1,arg2,(struct sockaddr_storage const *)arg3,arg4,arg5,arg6);
#23917|     resultobj = SWIG_From_int((int)(result));
#23918|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def36]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:23975: error[legacyUninitvar]: Uninitialized variable: arg3
#23973|       }
#23974|     }
#23975|->   result = (int)ldns_udp_bgsend2(arg1,(struct sockaddr_storage const *)arg2,arg3,arg4);
#23976|     resultobj = SWIG_From_int((int)(result));
#23977|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def37]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:23975: error[legacyUninitvar]: Uninitialized variable: arg4
#23973|       }
#23974|     }
#23975|->   result = (int)ldns_udp_bgsend2(arg1,(struct sockaddr_storage const *)arg2,arg3,arg4);
#23976|     resultobj = SWIG_From_int((int)(result));
#23977|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def38]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:24034: error[legacyUninitvar]: Uninitialized variable: arg3
#24032|       }
#24033|     }
#24034|->   result = (int)ldns_udp_bgsend(arg1,(struct sockaddr_storage const *)arg2,arg3,arg4);
#24035|     resultobj = SWIG_From_int((int)(result));
#24036|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def39]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:24034: error[legacyUninitvar]: Uninitialized variable: arg4
#24032|       }
#24033|     }
#24034|->   result = (int)ldns_udp_bgsend(arg1,(struct sockaddr_storage const *)arg2,arg3,arg4);
#24035|     resultobj = SWIG_From_int((int)(result));
#24036|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def40]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:24093: error[legacyUninitvar]: Uninitialized variable: arg3
#24091|       }
#24092|     }
#24093|->   result = (int)ldns_tcp_bgsend2(arg1,(struct sockaddr_storage const *)arg2,arg3,arg4);
#24094|     resultobj = SWIG_From_int((int)(result));
#24095|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def41]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:24093: error[legacyUninitvar]: Uninitialized variable: arg4
#24091|       }
#24092|     }
#24093|->   result = (int)ldns_tcp_bgsend2(arg1,(struct sockaddr_storage const *)arg2,arg3,arg4);
#24094|     resultobj = SWIG_From_int((int)(result));
#24095|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def42]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:24152: error[legacyUninitvar]: Uninitialized variable: arg3
#24150|       }
#24151|     }
#24152|->   result = (int)ldns_tcp_bgsend(arg1,(struct sockaddr_storage const *)arg2,arg3,arg4);
#24153|     resultobj = SWIG_From_int((int)(result));
#24154|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def43]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:24152: error[legacyUninitvar]: Uninitialized variable: arg4
#24150|       }
#24151|     }
#24152|->   result = (int)ldns_tcp_bgsend(arg1,(struct sockaddr_storage const *)arg2,arg3,arg4);
#24153|     resultobj = SWIG_From_int((int)(result));
#24154|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def44]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:24227: error[legacyUninitvar]: Uninitialized variable: arg4
#24225|     }
#24226|     arg6 = (size_t *)(argp6);
#24227|->   result = (ldns_status)ldns_tcp_send(arg1,arg2,(struct sockaddr_storage const *)arg3,arg4,arg5,arg6);
#24228|     resultobj = SWIG_From_int((int)(result));
#24229|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def45]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:24227: error[legacyUninitvar]: Uninitialized variable: arg5
#24225|     }
#24226|     arg6 = (size_t *)(argp6);
#24227|->   result = (ldns_status)ldns_tcp_send(arg1,arg2,(struct sockaddr_storage const *)arg3,arg4,arg5,arg6);
#24228|     resultobj = SWIG_From_int((int)(result));
#24229|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def46]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:24362: error[legacyUninitvar]: Uninitialized variable: arg2
#24360|       }
#24361|     }
#24362|->   result = (int)ldns_tcp_connect2((struct sockaddr_storage const *)arg1,arg2,arg3);
#24363|     resultobj = SWIG_From_int((int)(result));
#24364|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def47]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:24362: error[legacyUninitvar]: Uninitialized variable: arg3
#24360|       }
#24361|     }
#24362|->   result = (int)ldns_tcp_connect2((struct sockaddr_storage const *)arg1,arg2,arg3);
#24363|     resultobj = SWIG_From_int((int)(result));
#24364|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def48]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:24413: error[legacyUninitvar]: Uninitialized variable: arg2
#24411|       }
#24412|     }
#24413|->   result = (int)ldns_tcp_connect((struct sockaddr_storage const *)arg1,arg2,arg3);
#24414|     resultobj = SWIG_From_int((int)(result));
#24415|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def49]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:24413: error[legacyUninitvar]: Uninitialized variable: arg3
#24411|       }
#24412|     }
#24413|->   result = (int)ldns_tcp_connect((struct sockaddr_storage const *)arg1,arg2,arg3);
#24414|     resultobj = SWIG_From_int((int)(result));
#24415|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def50]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:24450: error[legacyUninitvar]: Uninitialized variable: arg2
#24448|       }
#24449|     }
#24450|->   result = (int)ldns_udp_connect2((struct sockaddr_storage const *)arg1,arg2);
#24451|     resultobj = SWIG_From_int((int)(result));
#24452|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def51]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:24487: error[legacyUninitvar]: Uninitialized variable: arg2
#24485|       }
#24486|     }
#24487|->   result = (int)ldns_udp_connect((struct sockaddr_storage const *)arg1,arg2);
#24488|     resultobj = SWIG_From_int((int)(result));
#24489|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def52]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:24540: error[legacyUninitvar]: Uninitialized variable: arg4
#24538|       }
#24539|     }
#24540|->   result = ldns_tcp_send_query(arg1,arg2,(struct sockaddr_storage const *)arg3,arg4);
#24541|     resultobj = SWIG_NewPointerObj((ssize_t *)memcpy((ssize_t *)calloc(1,sizeof(ssize_t)),&result,sizeof(ssize_t)), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN |  0 );
#24542|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def53]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:24593: error[legacyUninitvar]: Uninitialized variable: arg4
#24591|       }
#24592|     }
#24593|->   result = ldns_udp_send_query(arg1,arg2,(struct sockaddr_storage const *)arg3,arg4);
#24594|     resultobj = SWIG_NewPointerObj((ssize_t *)memcpy((ssize_t *)calloc(1,sizeof(ssize_t)),&result,sizeof(ssize_t)), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN |  0 );
#24595|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def54]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:24638: error[legacyUninitvar]: Uninitialized variable: arg3
#24636|       }
#24637|     }
#24638|->   result = (uint8_t *)ldns_tcp_read_wire_timeout(arg1,arg2,arg3);
#24639|     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 |  0 );
#24640|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def55]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:28052: error[legacyUninitvar]: Uninitialized variable: arg2
#28050|       }
#28051|     }
#28052|->   ldns_pkt_set_timestamp(arg1,arg2);
#28053|     resultobj = SWIG_Py_Void();
#28054|     return resultobj;

Error: CPPCHECK_WARNING (CWE-457): [#def56]
ldns-1.8.4/ldns-1.8.4_python3/contrib/python/ldns_wrapper.c:33123: error[legacyUninitvar]: Uninitialized variable: arg2
#33121|       }
#33122|     }
#33123|->   ldns_resolver_set_timeout(arg1,arg2);
#33124|     resultobj = SWIG_Py_Void();
#33125|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
ldns-1.8.4/ldns-1.8.4_python3/dane.c:189:24: warning[-Wanalyzer-malloc-leak]: leak of 'digest'
ldns-1.8.4/ldns-1.8.4_python3/dane.c:146:9: branch_true: following 'true' branch (when 'rdf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dane.c:147:9: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dane.c:147:9: branch_true: following 'true' branch (when 'cert' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dane.c:149:9: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dane.c:184:26: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dane.c:185:20: branch_false: following 'false' branch (when 'digest' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dane.c:189:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dane.c:189:24: danger: 'digest' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  187|   			return LDNS_STATUS_MEM_ERR;
#  188|   		}
#  189|-> 		(void) ldns_sha256(buf, (unsigned int)len, digest);
#  190|   		*rdf = ldns_rdf_new(LDNS_RDF_TYPE_HEX, LDNS_SHA256_DIGEST_LENGTH,
#  191|   				digest);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
ldns-1.8.4/ldns-1.8.4_python3/dane.c:204:24: warning[-Wanalyzer-malloc-leak]: leak of 'digest'
ldns-1.8.4/ldns-1.8.4_python3/dane.c:146:9: branch_true: following 'true' branch (when 'rdf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dane.c:147:9: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dane.c:147:9: branch_true: following 'true' branch (when 'cert' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dane.c:149:9: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dane.c:199:26: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dane.c:200:20: branch_false: following 'false' branch (when 'digest' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dane.c:204:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dane.c:204:24: danger: 'digest' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  202|   			return LDNS_STATUS_MEM_ERR;
#  203|   		}
#  204|-> 		(void) ldns_sha512(buf, (unsigned int)len, digest);
#  205|   		*rdf = ldns_rdf_new(LDNS_RDF_TYPE_HEX, LDNS_SHA512_DIGEST_LENGTH,
#  206|   				digest);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
ldns-1.8.4/ldns-1.8.4_python3/dname.c:80:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:52:1: enter_function: entry to 'ldns_dname_cat_clone'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:59:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:60:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:59:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:67:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:68:13: call_function: calling 'ldns_dname_last_label_is_root_label' from 'ldns_dname_cat_clone'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:68:13: return_function: returning to 'ldns_dname_cat_clone' from 'ldns_dname_last_label_is_root_label'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:68:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:73:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:74:15: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:75:12: branch_false: following 'false' branch (when 'buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:80:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:80:21: danger: 'buf' leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#   78|   
#   79|   	/* put the two dname's after each other */
#   80|-> 	memcpy(buf, ldns_rdf_data(rd1), left_size);
#   81|   	memcpy(buf + left_size, ldns_rdf_data(rd2), ldns_rdf_size(rd2));
#   82|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
ldns-1.8.4/ldns-1.8.4_python3/dname.c:81:9: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:52:1: enter_function: entry to 'ldns_dname_cat_clone'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:59:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:60:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:59:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:67:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:68:13: call_function: calling 'ldns_dname_last_label_is_root_label' from 'ldns_dname_cat_clone'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:68:13: return_function: returning to 'ldns_dname_cat_clone' from 'ldns_dname_last_label_is_root_label'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:68:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:73:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:74:15: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:75:12: branch_false: following 'false' branch (when 'buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:80:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:81:9: danger: 'buf' leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
#   79|   	/* put the two dname's after each other */
#   80|   	memcpy(buf, ldns_rdf_data(rd1), left_size);
#   81|-> 	memcpy(buf + left_size, ldns_rdf_data(rd2), ldns_rdf_size(rd2));
#   82|   
#   83|   	new = ldns_rdf_new_frm_data(LDNS_RDF_TYPE_DNAME, new_size, buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
ldns-1.8.4/ldns-1.8.4_python3/dname.c:81:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:52:1: enter_function: entry to 'ldns_dname_cat_clone'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:59:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:60:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:59:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:67:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:68:13: call_function: calling 'ldns_dname_last_label_is_root_label' from 'ldns_dname_cat_clone'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:68:13: return_function: returning to 'ldns_dname_cat_clone' from 'ldns_dname_last_label_is_root_label'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:68:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:73:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:74:15: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:75:12: branch_false: following 'false' branch (when 'buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:80:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:81:33: danger: 'buf' leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
#   79|   	/* put the two dname's after each other */
#   80|   	memcpy(buf, ldns_rdf_data(rd1), left_size);
#   81|-> 	memcpy(buf + left_size, ldns_rdf_data(rd2), ldns_rdf_size(rd2));
#   82|   
#   83|   	new = ldns_rdf_new_frm_data(LDNS_RDF_TYPE_DNAME, new_size, buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
ldns-1.8.4/ldns-1.8.4_python3/dname.c:83:15: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:52:1: enter_function: entry to 'ldns_dname_cat_clone'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:59:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:60:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:59:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:67:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:68:13: call_function: calling 'ldns_dname_last_label_is_root_label' from 'ldns_dname_cat_clone'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:68:13: return_function: returning to 'ldns_dname_cat_clone' from 'ldns_dname_last_label_is_root_label'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:68:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:73:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:74:15: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:75:12: branch_false: following 'false' branch (when 'buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:80:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:83:15: danger: 'buf' leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
#   81|   	memcpy(buf + left_size, ldns_rdf_data(rd2), ldns_rdf_size(rd2));
#   82|   
#   83|-> 	new = ldns_rdf_new_frm_data(LDNS_RDF_TYPE_DNAME, new_size, buf);
#   84|   
#   85|   	LDNS_FREE(buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
ldns-1.8.4/ldns-1.8.4_python3/dname.c:115:9: warning[-Wanalyzer-malloc-leak]: leak of 'newd'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:90:1: enter_function: entry to 'ldns_dname_cat'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:97:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:96:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:104:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:105:13: call_function: calling 'ldns_dname_last_label_is_root_label' from 'ldns_dname_cat'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:105:13: return_function: returning to 'ldns_dname_cat' from 'ldns_dname_last_label_is_root_label'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:109:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:111:11: branch_false: following 'false' branch (when 'newd' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:115:9: danger: 'newd' leaks here; was allocated at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
#  113|   	}
#  114|   
#  115|-> 	ldns_rdf_set_data(rd1, newd);
#  116|   	memcpy(ldns_rdf_data(rd1) + left_size, ldns_rdf_data(rd2),
#  117|   			ldns_rdf_size(rd2));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
ldns-1.8.4/ldns-1.8.4_python3/dname.c:139:15: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:132:9: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:134:19: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:135:15: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:136:12: branch_false: following 'false' branch (when 'buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:139:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:139:15: danger: 'buf' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  137|   		return NULL;
#  138|   	}
#  139|-> 	new = ldns_rdf_new(LDNS_RDF_TYPE_DNAME, rd_size, buf);
#  140|   	if (! new) {
#  141|   		LDNS_FREE(buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
ldns-1.8.4/ldns-1.8.4_python3/dname.c:261:9: warning[-Wanalyzer-malloc-leak]: leak of 'rd'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:254:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:257:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:257:14: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:258:12: branch_false: following 'false' branch (when 'rd' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:261:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:261:9: danger: 'rd' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  259|                   return NULL;
#  260|           }
#  261|->         ldns_rdf_set_size(rd, s);
#  262|           ldns_rdf_set_type(rd, LDNS_RDF_TYPE_DNAME);
#  263|           ldns_rdf_set_data(rd, d);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
ldns-1.8.4/ldns-1.8.4_python3/dname.c:585:38: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:569:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:575:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:578:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:579:20: branch_true: following 'true' branch (when 'labelcnt == labelpos')...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:581:32: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:581:32: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:582:28: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:585:68: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:585:38: danger: 'data' leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
#  583|   				return NULL;
#  584|   			}
#  585|-> 			memcpy(data, ldns_rdf_data(rdf) + src_pos, len + 1);
#  586|   			data[len + 2 - 1] = 0;
#  587|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
ldns-1.8.4/ldns-1.8.4_python3/dname.c:588:34: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/dname.c:569:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:575:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:578:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:579:20: branch_true: following 'true' branch (when 'labelcnt == labelpos')...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:581:32: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:581:32: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:582:28: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dname.c:585:68: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dname.c:588:34: danger: 'data' leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
#  586|   			data[len + 2 - 1] = 0;
#  587|   
#  588|-> 			tmpnew = ldns_rdf_new( LDNS_RDF_TYPE_DNAME
#  589|   					     , len + 2, data);
#  590|   			if (!tmpnew) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:287:13: warning[-Wanalyzer-malloc-leak]: leak of 'digest'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:508:1: enter_function: entry to 'ldns_key_rr2ds'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:520:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:524:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:525:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:528:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:537:26: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:538:20: branch_false: following 'false' branch (when 'digest' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:584:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:585:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:592:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:592:18: call_function: calling 'ldns_calc_keytag' from 'ldns_key_rr2ds'
#  285|   	}
#  286|   
#  287|-> 	if (ldns_rr_get_type(key) != LDNS_RR_TYPE_DNSKEY &&
#  288|   	    ldns_rr_get_type(key) != LDNS_RR_TYPE_KEY
#  289|   	    ) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:288:13: warning[-Wanalyzer-malloc-leak]: leak of 'digest'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:508:1: enter_function: entry to 'ldns_key_rr2ds'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:520:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:524:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:525:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:528:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:537:26: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:538:20: branch_false: following 'false' branch (when 'digest' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:584:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:585:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:592:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:592:18: call_function: calling 'ldns_calc_keytag' from 'ldns_key_rr2ds'
#  286|   
#  287|   	if (ldns_rr_get_type(key) != LDNS_RR_TYPE_DNSKEY &&
#  288|-> 	    ldns_rr_get_type(key) != LDNS_RR_TYPE_KEY
#  289|   	    ) {
#  290|   		return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:294:18: warning[-Wanalyzer-malloc-leak]: leak of 'digest'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:508:1: enter_function: entry to 'ldns_key_rr2ds'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:520:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:524:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:525:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:528:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:537:26: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:538:20: branch_false: following 'false' branch (when 'digest' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:584:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:585:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:592:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:592:18: call_function: calling 'ldns_calc_keytag' from 'ldns_key_rr2ds'
#  292|   
#  293|   	/* rdata to buf - only put the rdata in a buffer */
#  294|-> 	keybuf = ldns_buffer_new(LDNS_MIN_BUFLEN); /* grows */
#  295|   	if (!keybuf) {
#  296|   		return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:298:15: warning[-Wanalyzer-malloc-leak]: leak of 'digest'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:508:1: enter_function: entry to 'ldns_key_rr2ds'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:520:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:524:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:525:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:528:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:537:26: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:538:20: branch_false: following 'false' branch (when 'digest' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:584:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:585:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:592:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:592:18: call_function: calling 'ldns_calc_keytag' from 'ldns_key_rr2ds'
#  296|   		return 0;
#  297|   	}
#  298|-> 	(void)ldns_rr_rdata2buffer_wire(keybuf, key);
#  299|   	/* the current pos in the buffer is the keysize */
#  300|   	keysize= ldns_buffer_position(keybuf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:303:9: warning[-Wanalyzer-malloc-leak]: leak of 'digest'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:508:1: enter_function: entry to 'ldns_key_rr2ds'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:520:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:524:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:525:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:528:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:537:26: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:538:20: branch_false: following 'false' branch (when 'digest' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:584:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:585:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:592:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:592:18: call_function: calling 'ldns_calc_keytag' from 'ldns_key_rr2ds'
#  301|   
#  302|   	ac16 = ldns_calc_keytag_raw(ldns_buffer_begin(keybuf), keysize);
#  303|-> 	ldns_buffer_free(keybuf);
#  304|   	return ac16;
#  305|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:584:20: warning[-Wanalyzer-malloc-leak]: leak of 'digest'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:520:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:524:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:525:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:528:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:537:26: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:538:20: branch_false: following 'false' branch (when 'digest' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:584:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:584:20: danger: 'digest' leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#  582|   	}
#  583|   
#  584|-> 	data_buf = ldns_buffer_new(LDNS_MAX_PACKETLEN);
#  585|   	if (!data_buf) {
#  586|   		LDNS_FREE(digest);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:593:15: warning[-Wanalyzer-malloc-leak]: leak of 'digest'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:520:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:524:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:525:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:528:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:537:26: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:538:20: branch_false: following 'false' branch (when 'digest' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:584:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:585:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:592:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:593:15: danger: 'digest' leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
#  591|   	/* keytag */
#  592|   	keytag = htons(ldns_calc_keytag((ldns_rr*)key));
#  593|-> 	tmp = ldns_rdf_new_frm_data(LDNS_RDF_TYPE_INT16,
#  594|   						   sizeof(uint16_t),
#  595|   						   &keytag);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:596:9: warning[-Wanalyzer-malloc-leak]: leak of 'digest'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:520:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:524:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:525:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:528:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:537:26: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:538:20: branch_false: following 'false' branch (when 'digest' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:584:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:585:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:592:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:596:9: danger: 'digest' leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
#  594|   						   sizeof(uint16_t),
#  595|   						   &keytag);
#  596|-> 	ldns_rr_push_rdf(ds, tmp);
#  597|   
#  598|   	/* copy the algorithm field */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:599:20: warning[-Wanalyzer-malloc-leak]: leak of 'digest'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:520:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:524:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:525:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:528:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:537:26: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:538:20: branch_false: following 'false' branch (when 'digest' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:584:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:585:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:592:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:599:20: danger: 'digest' leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
#  597|   
#  598|   	/* copy the algorithm field */
#  599|-> 	if ((tmp = ldns_rr_rdf(key, 2)) == NULL) {
#  600|   		LDNS_FREE(digest);
#  601|   		ldns_buffer_free(data_buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1047:9: warning[-Wanalyzer-malloc-leak]: leak of 'hashed_owner_str'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1027:12: branch_false: following 'false' branch (when 'algorithm == 1')...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1032:16: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1033:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1039:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1042:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1043:11: branch_false: following 'false' branch (when 'hashed_owner_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1047:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1047:9: danger: 'hashed_owner_str' leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
# 1045|                   return NULL;
# 1046|           }
# 1047|-> 	memcpy(hashed_owner_str, ldns_rdf_data(cann), ldns_rdf_size(cann));
# 1048|   	memcpy(hashed_owner_str + ldns_rdf_size(cann), salt, salt_length);
# 1049|   	ldns_rdf_deep_free(cann);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1047:34: warning[-Wanalyzer-malloc-leak]: leak of 'hashed_owner_str'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1027:12: branch_false: following 'false' branch (when 'algorithm == 1')...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1032:16: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1033:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1039:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1042:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1043:11: branch_false: following 'false' branch (when 'hashed_owner_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1047:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1047:34: danger: 'hashed_owner_str' leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
# 1045|                   return NULL;
# 1046|           }
# 1047|-> 	memcpy(hashed_owner_str, ldns_rdf_data(cann), ldns_rdf_size(cann));
# 1048|   	memcpy(hashed_owner_str + ldns_rdf_size(cann), salt, salt_length);
# 1049|   	ldns_rdf_deep_free(cann);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1048:35: warning[-Wanalyzer-malloc-leak]: leak of 'hashed_owner_str'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1027:12: branch_false: following 'false' branch (when 'algorithm == 1')...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1032:16: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1033:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1039:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1042:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1043:11: branch_false: following 'false' branch (when 'hashed_owner_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1047:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1048:35: danger: 'hashed_owner_str' leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
# 1046|           }
# 1047|   	memcpy(hashed_owner_str, ldns_rdf_data(cann), ldns_rdf_size(cann));
# 1048|-> 	memcpy(hashed_owner_str + ldns_rdf_size(cann), salt, salt_length);
# 1049|   	ldns_rdf_deep_free(cann);
# 1050|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1049:9: warning[-Wanalyzer-malloc-leak]: leak of 'hashed_owner_str'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1027:12: branch_false: following 'false' branch (when 'algorithm == 1')...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1032:16: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1033:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1039:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1042:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1043:11: branch_false: following 'false' branch (when 'hashed_owner_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1047:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1049:9: danger: 'hashed_owner_str' leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
# 1047|   	memcpy(hashed_owner_str, ldns_rdf_data(cann), ldns_rdf_size(cann));
# 1048|   	memcpy(hashed_owner_str + ldns_rdf_size(cann), salt, salt_length);
# 1049|-> 	ldns_rdf_deep_free(cann);
# 1050|   
# 1051|   	for (cur_it = iterations + 1; cur_it > 0; cur_it--) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1052:24: warning[-Wanalyzer-malloc-leak]: leak of 'hashed_owner_str'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1027:12: branch_false: following 'false' branch (when 'algorithm == 1')...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1032:16: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1033:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1039:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1042:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1043:11: branch_false: following 'false' branch (when 'hashed_owner_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1047:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1051:39: branch_true: following 'true' branch (when 'cur_it != 0')...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1052:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1052:24: danger: 'hashed_owner_str' leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
# 1050|   
# 1051|   	for (cur_it = iterations + 1; cur_it > 0; cur_it--) {
# 1052|-> 		(void) ldns_sha1((unsigned char *) hashed_owner_str,
# 1053|   		                 (unsigned int) hashed_owner_str_len, hash);
# 1054|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1075:41: warning[-Wanalyzer-malloc-leak]: leak of 'hashed_owner_b32'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1027:12: branch_false: following 'false' branch (when 'algorithm == 1')...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1032:16: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1033:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1039:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1043:11: branch_false: following 'false' branch (when 'hashed_owner_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1047:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1070:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1072:11: branch_false: following 'false' branch (when 'hashed_owner_b32' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1075:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1075:41: danger: 'hashed_owner_b32' leaks here; was allocated at [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
# 1073|                   return NULL;
# 1074|           }
# 1075|->         hashed_owner_b32_len = (size_t) ldns_b32_ntop_extended_hex(
# 1076|                   (uint8_t *) hashed_owner_str,
# 1077|                   hashed_owner_str_len,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1143:20: warning[-Wanalyzer-malloc-leak]: leak of 'salt_data'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1136:21: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1137:11: branch_false: following 'false' branch (when 'salt_data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1141:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1143:20: danger: 'salt_data' leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 1141|   	salt_data[0] = salt_length;
# 1142|   	memcpy(salt_data + 1, salt, salt_length);
# 1143|-> 	salt_rdf = ldns_rdf_new_frm_data(LDNS_RDF_TYPE_NSEC3_SALT,
# 1144|   							   salt_length + 1,
# 1145|   							   salt_data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1152:15: warning[-Wanalyzer-malloc-leak]: leak of 'salt_data'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1136:21: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1137:11: branch_false: following 'false' branch (when 'salt_data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1141:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1146:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1152:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1152:15: danger: 'salt_data' leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
# 1150|           }
# 1151|   
# 1152|-> 	old = ldns_rr_set_rdf(rr, salt_rdf, 3);
# 1153|   	if (old) ldns_rdf_deep_free(old);
# 1154|   	LDNS_FREE(salt_data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1153:18: warning[-Wanalyzer-malloc-leak]: leak of 'salt_data'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1136:21: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1137:11: branch_false: following 'false' branch (when 'salt_data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1141:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1146:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1152:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1153:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1153:18: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1153:18: danger: 'salt_data' leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
# 1151|   
# 1152|   	old = ldns_rr_set_rdf(rr, salt_rdf, 3);
# 1153|-> 	if (old) ldns_rdf_deep_free(old);
# 1154|   	LDNS_FREE(salt_data);
# 1155|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1341:31: warning[-Wanalyzer-malloc-leak]: leak of 'salt'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1329:1: enter_function: entry to 'ldns_nsec3_salt_data'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1334:30: call_function: calling 'ldns_nsec3_salt' from 'ldns_nsec3_salt_data'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1334:30: return_function: returning to 'ldns_nsec3_salt_data' from 'ldns_nsec3_salt'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1335:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1337:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1339:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1339:24: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1340:19: branch_false: following 'false' branch (when 'salt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1341:31: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1341:31: danger: 'salt' leaks here; was allocated at [(11)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/10)
# 1339|   		salt = LDNS_XMALLOC(uint8_t, salt_length);
# 1340|                   if(!salt) return NULL;
# 1341|-> 		memcpy(salt, &ldns_rdf_data(salt_rdf)[1], salt_length);
# 1342|   		return salt;
# 1343|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1771:9: warning[-Wanalyzer-malloc-leak]: leak of 'dsasig_data'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1746:1: enter_function: entry to 'ldns_convert_dsa_rrsig_asn12rdf'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1753:54: call_function: inlined call to 'ldns_buffer_begin' from 'ldns_convert_dsa_rrsig_asn12rdf'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1753:54: call_function: inlined call to 'ldns_buffer_begin' from 'ldns_convert_dsa_rrsig_asn12rdf'
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1759:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1764:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1764:23: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1765:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1769:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec.c:1771:9: danger: 'dsasig_data' leaks here; was allocated at [(11)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/10)
# 1769|   	dsasig_data[0] = 0;
# 1770|   # ifdef HAVE_DSA_SIG_GET0
# 1771|-> 	DSA_SIG_get0(dsasig, &R, &S);
# 1772|   # else
# 1773|   	R = dsasig->r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:964:33: warning[-Wanalyzer-malloc-leak]: leak of 'hashmap_node'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:874:1: enter_function: entry to 'ldns_dnssec_zone_create_nsec3s_mkmap'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:919:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:923:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:933:27: call_function: calling 'ldns_dnssec_name_node_next_nonglue' from 'ldns_dnssec_zone_create_nsec3s_mkmap'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:933:27: return_function: returning to 'ldns_dnssec_zone_create_nsec3s_mkmap' from 'ldns_dnssec_name_node_next_nonglue'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:938:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:958:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:959:40: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:959:40: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:960:28: branch_false: following 'false' branch (when 'hashmap_node' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:964:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:964:33: danger: 'hashmap_node' leaks here; was allocated at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
#  962|   			}
#  963|   			current_name->hashed_name = 
#  964|-> 				ldns_dname_label(ldns_rr_owner(nsec_rr), 0);
#  965|   
#  966|   			if (current_name->hashed_name == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:964:50: warning[-Wanalyzer-malloc-leak]: leak of 'hashmap_node'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:874:1: enter_function: entry to 'ldns_dnssec_zone_create_nsec3s_mkmap'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:919:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:923:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:933:27: call_function: calling 'ldns_dnssec_name_node_next_nonglue' from 'ldns_dnssec_zone_create_nsec3s_mkmap'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:933:27: return_function: returning to 'ldns_dnssec_zone_create_nsec3s_mkmap' from 'ldns_dnssec_name_node_next_nonglue'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:938:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:958:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:959:40: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:959:40: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:960:28: branch_false: following 'false' branch (when 'hashmap_node' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:964:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:964:50: danger: 'hashmap_node' leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  962|   			}
#  963|   			current_name->hashed_name = 
#  964|-> 				ldns_dname_label(ldns_rr_owner(nsec_rr), 0);
#  965|   
#  966|   			if (current_name->hashed_name == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:973:31: warning[-Wanalyzer-malloc-leak]: leak of 'hashmap_node'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:874:1: enter_function: entry to 'ldns_dnssec_zone_create_nsec3s_mkmap'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:919:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:923:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:933:27: call_function: calling 'ldns_dnssec_name_node_next_nonglue' from 'ldns_dnssec_zone_create_nsec3s_mkmap'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:933:27: return_function: returning to 'ldns_dnssec_zone_create_nsec3s_mkmap' from 'ldns_dnssec_name_node_next_nonglue'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:938:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:958:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:959:40: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:959:40: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:960:28: branch_false: following 'false' branch (when 'hashmap_node' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:964:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:966:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:970:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_sign.c:973:31: danger: 'hashmap_node' leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
#  971|   			hashmap_node->data = current_name;
#  972|   
#  973|-> 			if (! ldns_rbtree_insert(zone->hashed_names
#  974|   						, hashmap_node)) {
#  975|   				LDNS_FREE(hashmap_node);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:63:25: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ldns_dnssec_rrs_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1882:1: enter_function: entry to 'rr_list2dnssec_rrs'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1890:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1893:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1900:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1903:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1903:27: call_function: calling 'ldns_dnssec_rrs_add_rr' from 'rr_list2dnssec_rrs'
#   61|   		} else {
#   62|   			new_rrs = ldns_dnssec_rrs_new();
#   63|-> 			new_rrs->rr = rr;
#   64|   			rrs->next = new_rrs;
#   65|   		}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:70:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ldns_dnssec_rrs_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1882:1: enter_function: entry to 'rr_list2dnssec_rrs'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1890:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1893:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1900:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1903:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1903:27: call_function: calling 'ldns_dnssec_rrs_add_rr' from 'rr_list2dnssec_rrs'
#   68|   		   rr in the current container */
#   69|   		new_rrs = ldns_dnssec_rrs_new();
#   70|-> 		new_rrs->rr = rrs->rr;
#   71|   		new_rrs->next = rrs->next;
#   72|   		rrs->rr = rr;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:174:19: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_dnssec_rrsets_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:449:1: enter_function: entry to 'ldns_dnssec_name_add_rr'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:468:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:482:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:482:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:483:34: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:483:34: call_function: calling 'ldns_dnssec_rrsets_add_rr' from 'ldns_dnssec_name_add_rr'
#  172|   
#  173|   	new_rrsets = ldns_dnssec_rrsets_new();
#  174|-> 	rr_type = ldns_rr_get_type(rr);
#  175|   	if (rr_type == LDNS_RR_TYPE_RRSIG) {
#  176|   		rrsig = true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:177:27: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_dnssec_rrsets_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:449:1: enter_function: entry to 'ldns_dnssec_name_add_rr'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:468:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:482:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:482:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:483:34: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:483:34: call_function: calling 'ldns_dnssec_rrsets_add_rr' from 'ldns_dnssec_name_add_rr'
#  175|   	if (rr_type == LDNS_RR_TYPE_RRSIG) {
#  176|   		rrsig = true;
#  177|-> 		rr_type = ldns_rdf2rr_type(ldns_rr_rrsig_typecovered(rr));
#  178|   	} else {
#  179|   		rrsig = false;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:177:44: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_dnssec_rrsets_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:449:1: enter_function: entry to 'ldns_dnssec_name_add_rr'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:468:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:482:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:482:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:483:34: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:483:34: call_function: calling 'ldns_dnssec_rrsets_add_rr' from 'ldns_dnssec_name_add_rr'
#  175|   	if (rr_type == LDNS_RR_TYPE_RRSIG) {
#  176|   		rrsig = true;
#  177|-> 		rr_type = ldns_rdf2rr_type(ldns_rr_rrsig_typecovered(rr));
#  178|   	} else {
#  179|   		rrsig = false;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def96]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:182:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ldns_dnssec_rrsets_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:449:1: enter_function: entry to 'ldns_dnssec_name_add_rr'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:468:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:482:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:482:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:483:34: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:483:34: call_function: calling 'ldns_dnssec_rrsets_add_rr' from 'ldns_dnssec_name_add_rr'
#  180|   	}
#  181|   	if (!rrsig) {
#  182|-> 		new_rrsets->rrs = ldns_dnssec_rrs_new();
#  183|   		new_rrsets->rrs->rr = rr;
#  184|   	} else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:183:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ldns_dnssec_rrs_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:449:1: enter_function: entry to 'ldns_dnssec_name_add_rr'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:468:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:482:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:482:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:483:34: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:483:34: call_function: calling 'ldns_dnssec_rrsets_add_rr' from 'ldns_dnssec_name_add_rr'
#  181|   	if (!rrsig) {
#  182|   		new_rrsets->rrs = ldns_dnssec_rrs_new();
#  183|-> 		new_rrsets->rrs->rr = rr;
#  184|   	} else {
#  185|   		new_rrsets->signatures = ldns_dnssec_rrs_new();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def98]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:185:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ldns_dnssec_rrsets_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:449:1: enter_function: entry to 'ldns_dnssec_name_add_rr'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:468:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:482:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:482:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:483:34: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:483:34: call_function: calling 'ldns_dnssec_rrsets_add_rr' from 'ldns_dnssec_name_add_rr'
#  183|   		new_rrsets->rrs->rr = rr;
#  184|   	} else {
#  185|-> 		new_rrsets->signatures = ldns_dnssec_rrs_new();
#  186|   		new_rrsets->signatures->rr = rr;
#  187|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def99]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:186:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ldns_dnssec_rrs_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:449:1: enter_function: entry to 'ldns_dnssec_name_add_rr'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:468:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:482:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:482:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:483:34: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:483:34: call_function: calling 'ldns_dnssec_rrsets_add_rr' from 'ldns_dnssec_name_add_rr'
#  184|   	} else {
#  185|   		new_rrsets->signatures = ldns_dnssec_rrs_new();
#  186|-> 		new_rrsets->signatures->rr = rr;
#  187|   	}
#  188|   	new_rrsets->type = rr_type;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def100]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:235:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ldns_dnssec_rrsets_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:449:1: enter_function: entry to 'ldns_dnssec_name_add_rr'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:468:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:482:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:482:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:483:34: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:483:34: call_function: calling 'ldns_dnssec_rrsets_add_rr' from 'ldns_dnssec_name_add_rr'
#  233|   		   replace field of current with data from new rr */
#  234|   		new_rrsets = ldns_dnssec_rrsets_new();
#  235|-> 		new_rrsets->rrs = rrsets->rrs;
#  236|   		new_rrsets->type = rrsets->type;
#  237|   		new_rrsets->signatures = rrsets->signatures;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def101]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:346:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'ldns_dnssec_name_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1002:1: enter_function: entry to 'ldns_dnssec_zone_add_rr'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1009:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1013:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1023:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1032:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1034:28: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1034:28: call_function: calling 'ldns_dnssec_name_new_frm_rr' from 'ldns_dnssec_zone_add_rr'
#  344|   	ldns_dnssec_name *new_name = ldns_dnssec_name_new();
#  345|   
#  346|-> 	new_name->name = ldns_rr_owner(rr);
#  347|   	if(ldns_dnssec_name_add_rr(new_name, rr) != LDNS_STATUS_OK) {
#  348|   		ldns_dnssec_name_free(new_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:346:26: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_dnssec_name_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1002:1: enter_function: entry to 'ldns_dnssec_zone_add_rr'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1009:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1013:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1023:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1032:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1034:28: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1034:28: call_function: calling 'ldns_dnssec_name_new_frm_rr' from 'ldns_dnssec_zone_add_rr'
#  344|   	ldns_dnssec_name *new_name = ldns_dnssec_name_new();
#  345|   
#  346|-> 	new_name->name = ldns_rr_owner(rr);
#  347|   	if(ldns_dnssec_name_add_rr(new_name, rr) != LDNS_STATUS_OK) {
#  348|   		ldns_dnssec_name_free(new_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:360:21: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_dnssec_name_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1115:1: enter_function: entry to 'ldns_dnssec_zone_add_empty_nonterminals_nsec3'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1129:12: branch_false: following 'false' branch (when 'zone' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1132:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1137:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1138:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1151:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1166:29: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1167:32: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1175:28: branch_true: following 'true' branch (when 'l1' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1182:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1182:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1190:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1190:36: branch_false: following 'false' branch (when 'nsec3s' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1212:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1212:44: call_function: calling 'ldns_dnssec_name_new' from 'ldns_dnssec_zone_add_empty_nonterminals_nsec3'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1212:44: return_function: returning to 'ldns_dnssec_zone_add_empty_nonterminals_nsec3' from 'ldns_dnssec_name_new'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1213:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1219:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1222:36: branch_true: following 'true' branch (when 'new_node' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1223:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1225:41: call_function: calling 'ldns_dnssec_name_free' from 'ldns_dnssec_zone_add_empty_nonterminals_nsec3'
#  358|   {
#  359|   	if (name) {
#  360|-> 		if (name->name_alloced) {
#  361|   			ldns_rdf_deep_free(name->name);
#  362|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:462:19: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_dnssec_name_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1002:1: enter_function: entry to 'ldns_dnssec_zone_add_rr'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1009:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1013:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1023:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1032:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1034:28: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1034:28: call_function: calling 'ldns_dnssec_name_new_frm_rr' from 'ldns_dnssec_zone_add_rr'
#  460|   	}
#  461|   
#  462|-> 	rr_type = ldns_rr_get_type(rr);
#  463|   
#  464|   	if (rr_type == LDNS_RR_TYPE_RRSIG) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:465:48: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_dnssec_name_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1002:1: enter_function: entry to 'ldns_dnssec_zone_add_rr'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1009:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1013:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1023:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1032:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1034:28: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1034:28: call_function: calling 'ldns_dnssec_name_new_frm_rr' from 'ldns_dnssec_zone_add_rr'
#  463|   
#  464|   	if (rr_type == LDNS_RR_TYPE_RRSIG) {
#  465|-> 		typecovered = ldns_rdf2rr_type(ldns_rr_rrsig_typecovered(rr));
#  466|   	}
#  467|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def106]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:478:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '*name.nsec_signatures'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:449:1: enter_function: entry to 'ldns_dnssec_name_add_rr'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:468:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:472:19: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:474:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:474:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:477:49: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:477:49: call_function: calling 'ldns_dnssec_rrs_new' from 'ldns_dnssec_name_add_rr'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:477:49: return_function: returning to 'ldns_dnssec_name_add_rr' from 'ldns_dnssec_rrs_new'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:478:25: danger: dereference of NULL 'ldns_dnssec_rrs_new()'
#  476|   		} else {
#  477|   			name->nsec_signatures = ldns_dnssec_rrs_new();
#  478|-> 			name->nsec_signatures->rr = rr;
#  479|   		}
#  480|   	} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:972:21: warning[-Wanalyzer-malloc-leak]: leak of 'new_node'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1002:1: enter_function: entry to 'ldns_dnssec_zone_add_rr'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1009:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1013:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1025:28: call_function: calling 'ldns_dnssec_zone_find_nsec3_original' from 'ldns_dnssec_zone_add_rr'
#  970|   		new_node->data = name;
#  971|   
#  972|-> 		if (ldns_rbtree_insert(zone->hashed_names, new_node) == NULL) {
#  973|   
#  974|   				LDNS_FREE(new_node);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1223:41: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_dnssec_name_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1115:1: enter_function: entry to 'ldns_dnssec_zone_add_empty_nonterminals_nsec3'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1129:12: branch_false: following 'false' branch (when 'zone' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1132:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1137:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1138:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1151:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1166:29: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1167:32: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1175:28: branch_true: following 'true' branch (when 'l1' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1182:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1182:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1190:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1190:36: branch_false: following 'false' branch (when 'nsec3s' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1212:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1212:44: call_function: calling 'ldns_dnssec_name_new' from 'ldns_dnssec_zone_add_empty_nonterminals_nsec3'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1212:44: return_function: returning to 'ldns_dnssec_zone_add_empty_nonterminals_nsec3' from 'ldns_dnssec_name_new'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1213:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1219:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1222:36: branch_true: following 'true' branch (when 'new_node' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1223:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1223:41: danger: 'ldns_dnssec_name_new()' leaks here; was allocated at [(18)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/17)
# 1221|   				new_node = LDNS_MALLOC(ldns_rbnode_t);
# 1222|   				if (!new_node) {
# 1223|-> 					ldns_rdf_deep_free(l1);
# 1224|   					ldns_rdf_deep_free(l2);
# 1225|   					ldns_dnssec_name_free(new_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1224:41: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_dnssec_name_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1115:1: enter_function: entry to 'ldns_dnssec_zone_add_empty_nonterminals_nsec3'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1129:12: branch_false: following 'false' branch (when 'zone' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1132:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1137:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1138:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1151:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1166:29: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1167:32: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1175:28: branch_true: following 'true' branch (when 'l1' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1182:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1182:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1190:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1190:36: branch_false: following 'false' branch (when 'nsec3s' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1212:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1212:44: call_function: calling 'ldns_dnssec_name_new' from 'ldns_dnssec_zone_add_empty_nonterminals_nsec3'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1212:44: return_function: returning to 'ldns_dnssec_zone_add_empty_nonterminals_nsec3' from 'ldns_dnssec_name_new'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1213:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1219:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1222:36: branch_true: following 'true' branch (when 'new_node' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1223:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1224:41: danger: 'ldns_dnssec_name_new()' leaks here; was allocated at [(18)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/17)
# 1222|   				if (!new_node) {
# 1223|   					ldns_rdf_deep_free(l1);
# 1224|-> 					ldns_rdf_deep_free(l2);
# 1225|   					ldns_dnssec_name_free(new_name);
# 1226|   					return LDNS_STATUS_MEM_ERR;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1230:39: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_dnssec_name_new()'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1115:1: enter_function: entry to 'ldns_dnssec_zone_add_empty_nonterminals_nsec3'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1129:12: branch_false: following 'false' branch (when 'zone' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1132:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1137:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1138:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1151:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1166:29: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1167:32: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1168:28: branch_false: following 'false' branch (when 'lpos < 0')...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1173:30: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1175:28: branch_true: following 'true' branch (when 'l1' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1182:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1182:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1190:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1190:36: branch_false: following 'false' branch (when 'nsec3s' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1212:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1212:44: call_function: calling 'ldns_dnssec_name_new' from 'ldns_dnssec_zone_add_empty_nonterminals_nsec3'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1212:44: return_function: returning to 'ldns_dnssec_zone_add_empty_nonterminals_nsec3' from 'ldns_dnssec_name_new'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1213:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1219:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1222:36: branch_false: following 'false' branch (when 'new_node' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1228:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1230:39: danger: 'ldns_dnssec_name_new()' leaks here; was allocated at [(20)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/19)
# 1228|   				new_node->key = new_name->name;
# 1229|   				new_node->data = new_name;
# 1230|-> 				(void)ldns_rbtree_insert(zone->names, new_node);
# 1231|   				ldns_dnssec_name_make_hashed_name(
# 1232|   						zone, new_name, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1230:39: warning[-Wanalyzer-malloc-leak]: leak of 'new_node'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1129:12: branch_false: following 'false' branch (when 'zone' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1132:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1137:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1138:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1151:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1166:29: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1167:32: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1168:28: branch_false: following 'false' branch (when 'lpos < 0')...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1173:30: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1175:28: branch_true: following 'true' branch (when 'l1' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1182:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1182:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1190:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1190:36: branch_false: following 'false' branch (when 'nsec3s' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1212:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1213:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1219:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1221:44: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1222:36: branch_false: following 'false' branch (when 'new_node' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1228:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1230:39: danger: 'new_node' leaks here; was allocated at [(19)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/18)
# 1228|   				new_node->key = new_name->name;
# 1229|   				new_node->data = new_name;
# 1230|-> 				(void)ldns_rbtree_insert(zone->names, new_node);
# 1231|   				ldns_dnssec_name_make_hashed_name(
# 1232|   						zone, new_name, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1659:21: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1634:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1637:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1637:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1640:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1644:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1646:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1648:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1650:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1652:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1654:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1656:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1656:12: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1659:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/dnssec_zone.c:1659:21: danger: 'data' leaks here; was allocated at [(11)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/10)
# 1657|   		goto error;
# 1658|   
# 1659|-> 	if (!(rdf = ldns_rdf_new(LDNS_RDF_TYPE_HEX, md_len, data)))
# 1660|   		goto error;
# 1661|   	ldns_rr_set_rdf(rr, rdf, 3);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:94:9: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:108:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:363:33: call_function: calling 'version' from 'main'
#   92|   version(FILE *stream, const char *progname)
#   93|   {
#   94|->         fprintf(stream, "%s version %s (ldns version %s)\n", progname, DRILL_VERSION, ldns_version());
#   95|           fprintf(stream, "Written by NLnet Labs.\n");
#   96|           fprintf(stream, "\nCopyright (c) 2004-2008 NLnet Labs.\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:208:9: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:208:9: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  206|   	ldns_edns_option_list* edns_list = NULL;
#  207|   
#  208|-> 	ldns_init_random(NULL, 0);
#  209|   
#  210|   	/* string from orig drill: "i:w:I46Sk:TNp:b:DsvhVcuaq:f:xr" */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:275:51: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:271:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:275:51: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:275:51: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  273|   					exit(EXIT_FAILURE);
#  274|   				}
#  275|-> 				global_dns_root = read_root_hints(optarg);
#  276|   				if (!global_dns_root) {
#  277|   					fprintf(stderr, "Unable to read root hints file %s, aborting\n", optarg);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:288:41: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:287:36: branch_true: following 'true' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:288:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:288:41: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  286|   				qbuf = (uint16_t)atoi(optarg);
#  287|   				if (qbuf == 0) {
#  288|-> 					error("%s", "<bufsize> could not be converted");
#  289|   				}
#  290|   				break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:298:42: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:298:42: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  296|   				break;
#  297|   			case 'k':
#  298|-> 				status = read_key_file(optarg,
#  299|   						key_list, false);
#  300|   				if (status != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:301:41: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:300:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:301:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:301:41: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  299|   						key_list, false);
#  300|   				if (status != LDNS_STATUS_OK) {
#  301|-> 					error("Could not parse the key file %s: %s", optarg, ldns_get_errorstr_by_id(status));
#  302|   				}
#  303|   				qdnssec = true; /* enable that too */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:353:41: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:352:36: branch_true: following 'true' branch (when 'qport == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:353:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:353:41: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  351|   				qport = (uint16_t)atoi(optarg);
#  352|   				if (qport == 0) {
#  353|-> 					error("%s", "<port> could not be converted");
#  354|   				}
#  355|   				break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:379:66: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:371:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:372:67: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:373:44: branch_false: following 'false' branch (when 'tsig_algorithm' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:377:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:377:44: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:378:76: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:379:66: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  377|   					if (strchr(optarg + tsig_separator + 1, ':')) {
#  378|   						tsig_separator2 = (size_t) (strchr(optarg + tsig_separator + 1, ':') - optarg);
#  379|-> 						tsig_algorithm = xmalloc(strlen(optarg) - tsig_separator2);
#  380|   						strncpy(tsig_algorithm, optarg + tsig_separator2 + 1, strlen(optarg) - tsig_separator2);
#  381|   						tsig_algorithm[strlen(optarg) - tsig_separator2 - 1] = '\0';

Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:386:53: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:371:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:372:67: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:373:44: branch_false: following 'false' branch (when 'tsig_algorithm' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:377:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:377:44: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:383:67: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:386:53: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  384|   						tsig_algorithm = strdup("hmac-md5.sig-alg.reg.int");
#  385|   					}
#  386|-> 					tsig_name = xmalloc(tsig_separator + 1);
#  387|   					tsig_data = xmalloc(tsig_separator2 - tsig_separator);
#  388|   					strncpy(tsig_name, optarg, tsig_separator);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:386:53: warning[-Wanalyzer-malloc-leak]: leak of 'tsig_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:371:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:372:67: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:373:44: branch_false: following 'false' branch (when 'tsig_algorithm' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:377:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:377:44: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:383:67: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:384:66: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:386:53: danger: 'tsig_algorithm' leaks here; was allocated at [(13)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/12)
#  384|   						tsig_algorithm = strdup("hmac-md5.sig-alg.reg.int");
#  385|   					}
#  386|-> 					tsig_name = xmalloc(tsig_separator + 1);
#  387|   					tsig_data = xmalloc(tsig_separator2 - tsig_separator);
#  388|   					strncpy(tsig_name, optarg, tsig_separator);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:387:53: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:371:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:372:67: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:373:44: branch_false: following 'false' branch (when 'tsig_algorithm' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:377:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:377:44: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:383:67: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:387:53: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  385|   					}
#  386|   					tsig_name = xmalloc(tsig_separator + 1);
#  387|-> 					tsig_data = xmalloc(tsig_separator2 - tsig_separator);
#  388|   					strncpy(tsig_name, optarg, tsig_separator);
#  389|   					strncpy(tsig_data, optarg + tsig_separator + 1, tsig_separator2 - tsig_separator - 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:387:53: warning[-Wanalyzer-malloc-leak]: leak of 'tsig_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:371:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:372:67: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:373:44: branch_false: following 'false' branch (when 'tsig_algorithm' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:377:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:377:44: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:383:67: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:384:66: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:387:53: danger: 'tsig_algorithm' leaks here; was allocated at [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
#  385|   					}
#  386|   					tsig_name = xmalloc(tsig_separator + 1);
#  387|-> 					tsig_data = xmalloc(tsig_separator2 - tsig_separator);
#  388|   					strncpy(tsig_name, optarg, tsig_separator);
#  389|   					strncpy(tsig_data, optarg + tsig_separator + 1, tsig_separator2 - tsig_separator - 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:404:52: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:404:52: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  402|   				break;
#  403|   			case 'd':
#  404|-> 				trace_start_name = ldns_dname_new_frm_str(optarg);
#  405|   				if (!trace_start_name) {
#  406|   					fprintf(stderr, "Unable to parse argument for -%c\n", c);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:427:25: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:426:12: branch_true: following 'true' branch (when 'PURPOSE == 2')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:427:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:427:25: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  425|   
#  426|   	if ((PURPOSE == DRILL_CHASE || (PURPOSE == DRILL_TRACE && qdnssec)) &&
#  427|-> 			ldns_rr_list_rr_count(key_list) == 0) {
#  428|   
#  429|   		(void) read_key_file(LDNS_TRUST_ANCHOR_FILE, key_list, true);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:429:24: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:426:12: branch_true: following 'true' branch (when 'PURPOSE == 2')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:427:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:426:13: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:429:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:429:24: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  427|   			ldns_rr_list_rr_count(key_list) == 0) {
#  428|   
#  429|-> 		(void) read_key_file(LDNS_TRUST_ANCHOR_FILE, key_list, true);
#  430|   	}
#  431|   	if (ldns_rr_list_rr_count(key_list) > 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:431:13: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:431:13: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  429|   		(void) read_key_file(LDNS_TRUST_ANCHOR_FILE, key_list, true);
#  430|   	}
#  431|-> 	if (ldns_rr_list_rr_count(key_list) > 0) {
#  432|   		printf(";; Number of trusted keys: %d\n",
#  433|   				(int) ldns_rr_list_rr_count(key_list));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:433:39: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:431:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:433:39: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:433:39: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  431|   	if (ldns_rr_list_rr_count(key_list) > 0) {
#  432|   		printf(";; Number of trusted keys: %d\n",
#  433|-> 				(int) ldns_rr_list_rr_count(key_list));
#  434|   	}
#  435|   	/* do a secure trace when requested */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:455:33: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:20: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:454:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:455:33: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  453|   		if (argv[i][0] == '@') {
#  454|   			if (strlen(argv[i]) == 1) {
#  455|-> 				warning("%s", "No nameserver given");
#  456|   				exit(EXIT_FAILURE);
#  457|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:465:45: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:20: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:28: branch_true: following 'true' branch (when the strings are equal)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:465:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:465:45: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  463|   			if (!strcmp(argv[i]+1, "nsid")) {
#  464|   				ldns_edns_option *edns;
#  465|-> 				edns_list = ldns_edns_option_list_new();
#  466|   
#  467|   				/* create NSID EDNS*/

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:468:40: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:20: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:28: branch_true: following 'true' branch (when the strings are equal)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:465:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:468:40: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#  466|   
#  467|   				/* create NSID EDNS*/
#  468|-> 				edns = ldns_edns_new_from_data(LDNS_EDNS_NSID, 0, NULL);
#  469|   
#  470|   				if (edns_list == NULL || edns == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:471:41: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:20: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:28: branch_true: following 'true' branch (when the strings are equal)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:465:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:470:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:471:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:471:41: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  469|   
#  470|   				if (edns_list == NULL || edns == NULL) {
#  471|-> 					error("EDNS option could not be allocated");
#  472|   					break;
#  473|   				}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:475:38: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:20: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:28: branch_true: following 'true' branch (when the strings are equal)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:465:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:470:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:475:38: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:475:38: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
#  473|   				}
#  474|   
#  475|-> 				if (!(ldns_edns_option_list_push(edns_list, edns))) {
#  476|   					error("EDNS option NSID could not be attached");
#  477|   					break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:476:41: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:20: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:28: branch_true: following 'true' branch (when the strings are equal)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:465:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:470:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:475:38: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:475:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:476:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:476:41: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
#  474|   
#  475|   				if (!(ldns_edns_option_list_push(edns_list, edns))) {
#  476|-> 					error("EDNS option NSID could not be attached");
#  477|   					break;
#  478|   				}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:482:33: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:20: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:28: branch_false: following 'false' branch (when the strings are non-equal)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:482:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:482:33: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
#  480|   			}
#  481|   			else {
#  482|-> 				error("Unsupported argument after '+'");
#  483|   				break;
#  484|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:493:32: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:20: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:487:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:487:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:492:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:492:20: branch_true: following 'true' branch (when 'int_type == -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:493:32: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:493:32: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
#  491|   		/* if it matches a type, it's a type */
#  492|   		if (int_type == -1) {
#  493|-> 			type = ldns_get_rr_type_by_name(argv[i]);
#  494|   			if (type != 0) {
#  495|   				int_type = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:505:32: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:20: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:487:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:487:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:492:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:492:20: branch_true: following 'true' branch (when 'int_type == -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:493:32: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:494:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:497:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:497:35: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:504:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:504:20: branch_true: following 'true' branch (when 'int_clas == -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:505:32: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:505:32: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
#  503|   		/* if it matches a class, it's a class */
#  504|   		if (int_clas == -1) {
#  505|-> 			clas = ldns_get_rr_class_by_name(argv[i]);
#  506|   			if (clas != 0) {
#  507|   				int_clas = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:588:27: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:423:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:426:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:436:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: following 'false' branch (when 'drill_reverse == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_true: following 'true' branch (when 'src' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:588:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:588:27: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
#  586|   
#  587|   	if (src) {
#  588|-> 		src_rdf = ldns_rdf_new_addr_frm_str(src);
#  589|   		if(!src_rdf) {
#  590|   			fprintf(stderr, "-I must be a valid IP[v6] address.\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:593:21: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:423:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:426:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:436:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: following 'false' branch (when 'drill_reverse == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_true: following 'true' branch (when 'src' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:588:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:589:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:593:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:593:21: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
#  591|   			exit(EXIT_FAILURE);
#  592|   		}
#  593|-> 		if (ldns_rdf_size(src_rdf) == 4) {
#  594|   			qfamily = LDNS_RESOLV_INET;
#  595|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:596:28: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:423:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:426:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:436:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: following 'false' branch (when 'drill_reverse == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_true: following 'true' branch (when 'src' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:588:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:589:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:593:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:593:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:596:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:596:28: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
#  594|   			qfamily = LDNS_RESOLV_INET;
#  595|   
#  596|-> 		} else if (ldns_rdf_size(src_rdf) == 16) {
#  597|   			qfamily = LDNS_RESOLV_INET6;
#  598|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
#  602|   	if (!serv) {
#  603|   		/* no server given -- make a resolver from /etc/resolv.conf */
#  604|-> 		status = ldns_resolver_new_frm_file(&res, resolv_conf_file);
#  605|   		if (status != LDNS_STATUS_OK) {
#  606|   			warning("Could not create a resolver structure: %s (%s)\n"

Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:662:9: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:662:9: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
#  660|   	}
#  661|   	/* set the resolver options */
#  662|-> 	ldns_resolver_set_ixfr_serial(res, serial);
#  663|   	ldns_resolver_set_port(res, qport);
#  664|   	ldns_resolver_set_source(res, src_rdf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:663:9: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:663:9: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
#  661|   	/* set the resolver options */
#  662|   	ldns_resolver_set_ixfr_serial(res, serial);
#  663|-> 	ldns_resolver_set_port(res, qport);
#  664|   	ldns_resolver_set_source(res, src_rdf);
#  665|   	if (verbosity >= 5) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:664:9: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:664:9: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
#  662|   	ldns_resolver_set_ixfr_serial(res, serial);
#  663|   	ldns_resolver_set_port(res, qport);
#  664|-> 	ldns_resolver_set_source(res, src_rdf);
#  665|   	if (verbosity >= 5) {
#  666|   		ldns_resolver_set_debug(res, true);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:666:17: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:665:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:666:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:666:17: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
#  664|   	ldns_resolver_set_source(res, src_rdf);
#  665|   	if (verbosity >= 5) {
#  666|-> 		ldns_resolver_set_debug(res, true);
#  667|   	} else {
#  668|   		ldns_resolver_set_debug(res, false);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:668:17: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:665:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:668:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:668:17: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
#  666|   		ldns_resolver_set_debug(res, true);
#  667|   	} else {
#  668|-> 		ldns_resolver_set_debug(res, false);
#  669|   	}
#  670|   	ldns_resolver_set_dnssec(res, qdnssec);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:670:9: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:670:9: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
#  668|   		ldns_resolver_set_debug(res, false);
#  669|   	}
#  670|-> 	ldns_resolver_set_dnssec(res, qdnssec);
#  671|   /*	ldns_resolver_set_dnssec_cd(res, qdnssec);*/
#  672|   	ldns_resolver_set_ip6(res, qfamily);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:672:9: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:672:9: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/0)
#  670|   	ldns_resolver_set_dnssec(res, qdnssec);
#  671|   /*	ldns_resolver_set_dnssec_cd(res, qdnssec);*/
#  672|-> 	ldns_resolver_set_ip6(res, qfamily);
#  673|   	ldns_resolver_set_fallback(res, qfallback);
#  674|   	ldns_resolver_set_usevc(res, qusevc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:673:9: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:673:9: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/0)
#  671|   /*	ldns_resolver_set_dnssec_cd(res, qdnssec);*/
#  672|   	ldns_resolver_set_ip6(res, qfamily);
#  673|-> 	ldns_resolver_set_fallback(res, qfallback);
#  674|   	ldns_resolver_set_usevc(res, qusevc);
#  675|   	ldns_resolver_set_random(res, qrandom);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:674:9: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:674:9: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0)
#  672|   	ldns_resolver_set_ip6(res, qfamily);
#  673|   	ldns_resolver_set_fallback(res, qfallback);
#  674|-> 	ldns_resolver_set_usevc(res, qusevc);
#  675|   	ldns_resolver_set_random(res, qrandom);
#  676|   	if (qbuf != 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:675:9: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:675:9: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
#  673|   	ldns_resolver_set_fallback(res, qfallback);
#  674|   	ldns_resolver_set_usevc(res, qusevc);
#  675|-> 	ldns_resolver_set_random(res, qrandom);
#  676|   	if (qbuf != 0) {
#  677|   		ldns_resolver_set_edns_udp_size(res, qbuf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:819:33: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:426:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:431:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:436:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:20: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:28: branch_true: following 'true' branch (when the strings are equal)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:465:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: following 'false' branch (when 'drill_reverse == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:819:33: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
#  817|   			break;
#  818|   		case DRILL_QTOFILE:
#  819|-> 			qname = ldns_dname_new_frm_str(name);
#  820|   			if (!qname) {
#  821|   				error("%s", "making qname");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:821:33: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:426:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:431:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:436:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:20: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:28: branch_true: following 'true' branch (when the strings are equal)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:465:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: following 'false' branch (when 'drill_reverse == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:820:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:821:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:821:33: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0)
#  819|   			qname = ldns_dname_new_frm_str(name);
#  820|   			if (!qname) {
#  821|-> 				error("%s", "making qname");
#  822|   			}
#  823|   			status = ldns_resolver_prepare_query_pkt(&qpkt, res, qname, type, clas, qflags);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def155]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:823:34: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:426:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:431:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:436:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:20: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:28: branch_true: following 'true' branch (when the strings are equal)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:465:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: following 'false' branch (when 'drill_reverse == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:823:34: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
#  821|   				error("%s", "making qname");
#  822|   			}
#  823|-> 			status = ldns_resolver_prepare_query_pkt(&qpkt, res, qname, type, clas, qflags);
#  824|   			if(status != LDNS_STATUS_OK) {
#  825|   				error("%s", "making query: %s",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:853:48: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:426:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:431:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:436:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:20: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:28: branch_true: following 'true' branch (when the strings are equal)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:465:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: following 'false' branch (when 'drill_reverse == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_true: following 'true' branch (when 'query_file' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:853:48: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:853:48: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
#  851|   				}
#  852|   				#endif
#  853|-> 				query_buffer = read_hex_buffer(query_file);
#  854|   				if (query_buffer) {
#  855|   					status = ldns_send_buffer(&pkt, res, query_buffer, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:855:50: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:426:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:431:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:436:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:20: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:28: branch_true: following 'true' branch (when the strings are equal)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:465:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: following 'false' branch (when 'drill_reverse == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_true: following 'true' branch (when 'query_file' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:853:48: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:854:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:855:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:855:50: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/0)
#  853|   				query_buffer = read_hex_buffer(query_file);
#  854|   				if (query_buffer) {
#  855|-> 					status = ldns_send_buffer(&pkt, res, query_buffer, NULL);
#  856|   					ldns_buffer_free(query_buffer);
#  857|   					if (status != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:856:41: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:426:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:431:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:436:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:20: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:28: branch_true: following 'true' branch (when the strings are equal)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:465:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: following 'false' branch (when 'drill_reverse == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_true: following 'true' branch (when 'query_file' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:853:48: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:854:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:855:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:856:41: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/0)
#  854|   				if (query_buffer) {
#  855|   					status = ldns_send_buffer(&pkt, res, query_buffer, NULL);
#  856|-> 					ldns_buffer_free(query_buffer);
#  857|   					if (status != LDNS_STATUS_OK) {
#  858|   						printf("Error: %s\n", ldns_get_errorstr_by_id(status));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:858:49: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:214:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:215:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:426:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:431:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:436:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:20: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:28: branch_true: following 'true' branch (when the strings are equal)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:465:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: following 'false' branch (when 'drill_reverse == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_true: following 'true' branch (when 'query_file' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:853:48: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:854:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:855:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:857:44: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:858:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:858:49: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/0)
#  856|   					ldns_buffer_free(query_buffer);
#  857|   					if (status != LDNS_STATUS_OK) {
#  858|-> 						printf("Error: %s\n", ldns_get_errorstr_by_id(status));
#  859|   						exit(1);
#  860|   					}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/0)
#  864|   				}
#  865|   			} else {
#  866|-> 				qname = ldns_dname_new_frm_str(name);
#  867|   				if (!qname) {
#  868|   					error("%s", "error in making qname");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:868:41: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:867:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:868:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:868:41: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/0)
#  866|   				qname = ldns_dname_new_frm_str(name);
#  867|   				if (!qname) {
#  868|-> 					error("%s", "error in making qname");
#  869|   				}
#  870|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:897:50: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:897:50: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/0)
#  895|   					pkt = NULL;
#  896|   
#  897|-> 					status = ldns_resolver_prepare_query_pkt(&qpkt,
#  898|   						res, qname, type, clas, qflags);
#  899|   					if(status != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:900:49: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:899:43: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:900:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:900:49: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/0)
#  898|   						res, qname, type, clas, qflags);
#  899|   					if(status != LDNS_STATUS_OK) {
#  900|-> 						error("%s", "making query: %s", 
#  901|   							ldns_get_errorstr_by_id(status));
#  902|   					}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:906:49: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:450:20: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:453:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:462:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:463:28: branch_true: following 'true' branch (when the strings are equal)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:465:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_true: following 'true' branch (when 'edns_list' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:906:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:906:49: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/0)
#  904|   					if (edns_list) {
#  905|   						/* attach the structed EDNS options */
#  906|-> 						ldns_pkt_set_edns_option_list(qpkt, edns_list);
#  907|   					}
#  908|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/0)
#  907|   					}
#  908|   
#  909|-> 					status = ldns_resolver_send_pkt(&pkt, res, qpkt);
#  910|   					ldns_pkt_free(qpkt);
#  911|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:910:41: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:910:41: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/0)
#  908|   
#  909|   					status = ldns_resolver_send_pkt(&pkt, res, qpkt);
#  910|-> 					ldns_pkt_free(qpkt);
#  911|   
#  912|   					if (status != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:913:49: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:912:44: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:913:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:913:49: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/0)
#  911|   
#  912|   					if (status != LDNS_STATUS_OK) {
#  913|-> 						error("error sending query: %s"
#  914|   						     , ldns_get_errorstr_by_id(
#  915|   							     status));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def168]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/0)
#  923|   				result = EXIT_FAILURE;
#  924|   			} else {
#  925|-> 				ldns_pkt_print_fmt(stdout, fmt, pkt);
#  926|   				if (verbosity != -1) {
#  927|   					if (ldns_pkt_tc(pkt)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:927:45: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:926:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:927:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:927:45: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/0)
#  925|   				ldns_pkt_print_fmt(stdout, fmt, pkt);
#  926|   				if (verbosity != -1) {
#  927|-> 					if (ldns_pkt_tc(pkt)) {
#  928|   						fprintf(stdout,
#  929|   							"\n;; WARNING: The answer packet was truncated; you might want to\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:37: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:37: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/0)
#  939|   				}
#  940|   			
#  941|-> 				if (ldns_rr_list_rr_count(key_list) > 0) {
#  942|   					/* -k's were given on the cmd line */
#  943|   					ldns_rr_list *rrset_verified;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/0)
#  944|   					uint16_t key_count;
#  945|   
#  946|-> 					rrset_verified = ldns_pkt_rr_list_by_name_and_type(
#  947|   							pkt, qname, type, 
#  948|   							LDNS_SECTION_ANY_NOQUESTION);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:957:49: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:44: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:956:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:957:49: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/0)
#  955|   					if (verbosity != -1) {
#  956|   						printf("; ");
#  957|-> 						ldns_rr_list_print(stdout, rrset_verified);
#  958|   					}
#  959|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:962:56: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:962:56: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/0)
#  960|   					/* verify */
#  961|   #ifdef HAVE_SSL
#  962|-> 					key_verified = ldns_rr_list_new();
#  963|   					result = ldns_pkt_verify(pkt, type, qname, key_list, NULL, key_verified);
#  964|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:963:50: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:963:50: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/0)
#  961|   #ifdef HAVE_SSL
#  962|   					key_verified = ldns_rr_list_new();
#  963|-> 					result = ldns_pkt_verify(pkt, type, qname, key_list, NULL, key_verified);
#  964|   
#  965|   					if (result == LDNS_STATUS_ERR) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:967:58: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:965:44: branch_true: following 'true' branch (when 'result == 11')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:967:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:967:58: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/0)
#  965|   					if (result == LDNS_STATUS_ERR) {
#  966|   						/* is the existence denied then? */
#  967|-> 						result = ldns_verify_denial(pkt, qname, type, NULL, NULL);
#  968|   						if (result == LDNS_STATUS_OK) {
#  969|   							if (verbosity != -1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:971:65: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:965:44: branch_true: following 'true' branch (when 'result == 11')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:967:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:968:52: branch_true: following 'true' branch (when 'result == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:969:61: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:969:60: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:970:65: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:971:65: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/0)
#  969|   							if (verbosity != -1) {
#  970|   								printf("Existence denied for ");
#  971|-> 								ldns_rdf_print(stdout, qname);
#  972|   								type_str = ldns_rr_type2str(type);
#  973|   								printf("\t%s\n", type_str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:972:76: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:965:44: branch_true: following 'true' branch (when 'result == 11')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:967:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:968:52: branch_true: following 'true' branch (when 'result == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:969:61: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:969:60: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:970:65: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:972:76: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/0)
#  970|   								printf("Existence denied for ");
#  971|   								ldns_rdf_print(stdout, qname);
#  972|-> 								type_str = ldns_rr_type2str(type);
#  973|   								printf("\t%s\n", type_str);
#  974|   								LDNS_FREE(type_str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:985:80: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:965:44: branch_false: following 'false' branch (when 'result != 11')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_true: following 'true' branch (when 'result == 0')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:985:80: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/0)
#  983|   						}
#  984|   					} else if (result == LDNS_STATUS_OK) {
#  985|-> 						for(key_count = 0; key_count < ldns_rr_list_rr_count(key_verified);
#  986|   								key_count++) {
#  987|   							if (verbosity != -1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:989:95: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:965:44: branch_false: following 'false' branch (when 'result != 11')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_true: following 'true' branch (when 'result == 0')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:985:68: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:987:61: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:987:60: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:990:103: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:989:95: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/0)
#  987|   							if (verbosity != -1) {
#  988|   								printf("; VALIDATED by id = %u, owner = ",
#  989|-> 										(unsigned int)ldns_calc_keytag(
#  990|   												      ldns_rr_list_rr(key_verified, key_count)));
#  991|   								ldns_rdf_print(stdout, ldns_rr_owner(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:990:103: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:965:44: branch_false: following 'false' branch (when 'result != 11')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_true: following 'true' branch (when 'result == 0')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:985:68: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:987:61: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:987:60: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:990:103: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:990:103: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/0)
#  988|   								printf("; VALIDATED by id = %u, owner = ",
#  989|   										(unsigned int)ldns_calc_keytag(
#  990|-> 												      ldns_rr_list_rr(key_verified, key_count)));
#  991|   								ldns_rdf_print(stdout, ldns_rr_owner(
#  992|   											ldns_rr_list_rr(key_list, key_count)));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:991:65: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:965:44: branch_false: following 'false' branch (when 'result != 11')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_true: following 'true' branch (when 'result == 0')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:985:68: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:987:61: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:987:60: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:990:103: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:991:65: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/0)
#  989|   										(unsigned int)ldns_calc_keytag(
#  990|   												      ldns_rr_list_rr(key_verified, key_count)));
#  991|-> 								ldns_rdf_print(stdout, ldns_rr_owner(
#  992|   											ldns_rr_list_rr(key_list, key_count)));
#  993|   								printf("\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def182]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:991:88: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:965:44: branch_false: following 'false' branch (when 'result != 11')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_true: following 'true' branch (when 'result == 0')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:985:68: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:987:61: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:987:60: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:990:103: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:991:88: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/72/codeFlows/0/threadFlows/0/locations/0)
#  989|   										(unsigned int)ldns_calc_keytag(
#  990|   												      ldns_rr_list_rr(key_verified, key_count)));
#  991|-> 								ldns_rdf_print(stdout, ldns_rr_owner(
#  992|   											ldns_rr_list_rr(key_list, key_count)));
#  993|   								printf("\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:992:89: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:965:44: branch_false: following 'false' branch (when 'result != 11')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_true: following 'true' branch (when 'result == 0')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:985:68: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:987:61: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:987:60: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:990:103: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:992:89: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/73/codeFlows/0/threadFlows/0/locations/0)
#  990|   												      ldns_rr_list_rr(key_verified, key_count)));
#  991|   								ldns_rdf_print(stdout, ldns_rr_owner(
#  992|-> 											ldns_rr_list_rr(key_list, key_count)));
#  993|   								printf("\n");
#  994|   							}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:997:80: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:965:44: branch_false: following 'false' branch (when 'result != 11')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: following 'false' branch (when 'result != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:997:80: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/74/codeFlows/0/threadFlows/0/locations/0)
#  995|   						}
#  996|   					} else {
#  997|-> 						for(key_count = 0; key_count < ldns_rr_list_rr_count(key_list);
#  998|   								key_count++) {
#  999|   							if (verbosity != -1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1000:65: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:965:44: branch_false: following 'false' branch (when 'result != 11')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: following 'false' branch (when 'result != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:997:68: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:999:61: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:999:60: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1003:103: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1000:65: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/75/codeFlows/0/threadFlows/0/locations/0)
#  998|   								key_count++) {
#  999|   							if (verbosity != -1) {
# 1000|-> 								printf("; %s for id = %u, owner = ",
# 1001|   								       ldns_get_errorstr_by_id(result),
# 1002|   								       (unsigned int)ldns_calc_keytag(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1002:86: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:965:44: branch_false: following 'false' branch (when 'result != 11')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: following 'false' branch (when 'result != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:997:68: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:999:61: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:999:60: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1003:103: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1002:86: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/76/codeFlows/0/threadFlows/0/locations/0)
# 1000|   								printf("; %s for id = %u, owner = ",
# 1001|   								       ldns_get_errorstr_by_id(result),
# 1002|-> 								       (unsigned int)ldns_calc_keytag(
# 1003|   												      ldns_rr_list_rr(key_list, key_count)));
# 1004|   								ldns_rdf_print(stdout, ldns_rr_owner(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1003:103: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:965:44: branch_false: following 'false' branch (when 'result != 11')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: following 'false' branch (when 'result != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:997:68: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:999:61: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:999:60: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1003:103: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1003:103: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/0)
# 1001|   								       ldns_get_errorstr_by_id(result),
# 1002|   								       (unsigned int)ldns_calc_keytag(
# 1003|-> 												      ldns_rr_list_rr(key_list, key_count)));
# 1004|   								ldns_rdf_print(stdout, ldns_rr_owner(
# 1005|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1004:65: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:965:44: branch_false: following 'false' branch (when 'result != 11')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: following 'false' branch (when 'result != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:997:68: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:999:61: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:999:60: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1003:103: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1004:65: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/78/codeFlows/0/threadFlows/0/locations/0)
# 1002|   								       (unsigned int)ldns_calc_keytag(
# 1003|   												      ldns_rr_list_rr(key_list, key_count)));
# 1004|-> 								ldns_rdf_print(stdout, ldns_rr_owner(
# 1005|   
# 1006|   								ldns_rr_list_rr(key_list,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1004:88: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:965:44: branch_false: following 'false' branch (when 'result != 11')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: following 'false' branch (when 'result != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:997:68: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:999:61: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:999:60: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1003:103: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1004:88: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/79/codeFlows/0/threadFlows/0/locations/0)
# 1002|   								       (unsigned int)ldns_calc_keytag(
# 1003|   												      ldns_rr_list_rr(key_list, key_count)));
# 1004|-> 								ldns_rdf_print(stdout, ldns_rr_owner(
# 1005|   
# 1006|   								ldns_rr_list_rr(key_list,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1006:65: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:965:44: branch_false: following 'false' branch (when 'result != 11')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: following 'false' branch (when 'result != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:997:68: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:999:61: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:999:60: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1003:103: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1006:65: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/80/codeFlows/0/threadFlows/0/locations/0)
# 1004|   								ldns_rdf_print(stdout, ldns_rr_owner(
# 1005|   
# 1006|-> 								ldns_rr_list_rr(key_list,
# 1007|   								key_count)));
# 1008|   								printf("\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1012:41: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:182:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:515:12: branch_true: following 'true' branch (when 'name' is NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:522:12: branch_true: following 'true' branch (when 'int_clas == -1')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:525:12: branch_false: following 'false' branch (when 'int_type != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:532:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:587:12: branch_false: following 'false' branch (when 'src' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:602:12: branch_true: following 'true' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:604:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:605:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:676:12: branch_false: following 'false' branch (when 'qbuf == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:689:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:729:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:835:28: branch_false: following 'false' branch (when 'query_file' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:866:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:871:36: branch_false: following 'false' branch (when 'type != 252')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:895:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:904:44: branch_false: following 'false' branch (when 'edns_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:909:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:921:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:925:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:941:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:946:58: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:950:44: branch_false: following 'false' branch (when 'type != 255')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:955:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:984:51: branch_false: following 'false' branch (when 'result != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:997:68: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1012:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill.c:1012:41: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/81/codeFlows/0/threadFlows/0/locations/0)
# 1010|   						}
# 1011|   					}
# 1012|-> 					ldns_rr_list_free(key_verified);
# 1013|   #else
# 1014|   					(void) key_count;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def192]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:60:34: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:38:1: enter_function: entry to 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:48:22: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:49:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:56:16: branch_true: following 'true' branch (when 'line_len != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: call_function: calling 'read_line' from 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: return_function: returning to 'read_key_file' from 'read_line'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:59:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:60:34: danger: 'fopen(filename, "r")' leaks here; was opened at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
#   58|   		line_nr++;
#   59|   		if (line_len > 0 && line[0] != ';') {
#   60|-> 			status = ldns_rr_new_frm_str(&rr, line, 0, NULL, NULL);
#   61|   			if (status != LDNS_STATUS_OK) {
#   62|   				if (! silently) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:60:34: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:38:1: enter_function: entry to 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:48:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:49:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:56:16: branch_true: following 'true' branch (when 'line_len != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: call_function: calling 'read_line' from 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: return_function: returning to 'read_key_file' from 'read_line'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:59:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:60:34: danger: 'fopen(filename, "r")' leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
#   58|   		line_nr++;
#   59|   		if (line_len > 0 && line[0] != ';') {
#   60|-> 			status = ldns_rr_new_frm_str(&rr, line, 0, NULL, NULL);
#   61|   			if (status != LDNS_STATUS_OK) {
#   62|   				if (! silently) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def194]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:63:41: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:38:1: enter_function: entry to 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:48:22: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:49:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:56:16: branch_true: following 'true' branch (when 'line_len != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: call_function: calling 'read_line' from 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: return_function: returning to 'read_key_file' from 'read_line'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:59:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:61:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:62:36: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:62:36: branch_false: following 'false' branch (when 'silently == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:63:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:63:41: danger: 'fopen(filename, "r")' leaks here; was opened at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
#   61|   			if (status != LDNS_STATUS_OK) {
#   62|   				if (! silently) {
#   63|-> 					fprintf(stderr,
#   64|   						"Error parsing DNSKEY RR "
#   65|   						"in line %d: %s\n", line_nr,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:63:41: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:38:1: enter_function: entry to 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:48:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:49:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:56:16: branch_true: following 'true' branch (when 'line_len != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: call_function: calling 'read_line' from 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: return_function: returning to 'read_key_file' from 'read_line'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:59:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:61:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:62:36: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:62:36: branch_false: following 'false' branch (when 'silently == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:63:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:63:41: danger: 'fopen(filename, "r")' leaks here; was allocated at [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1)
#   61|   			if (status != LDNS_STATUS_OK) {
#   62|   				if (! silently) {
#   63|-> 					fprintf(stderr,
#   64|   						"Error parsing DNSKEY RR "
#   65|   						"in line %d: %s\n", line_nr,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def196]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:36: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:38:1: enter_function: entry to 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:48:22: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:49:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:56:16: branch_true: following 'true' branch (when 'line_len != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: call_function: calling 'read_line' from 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: return_function: returning to 'read_key_file' from 'read_line'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:59:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:61:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:36: danger: 'fopen(filename, "r")' leaks here; was opened at [(2)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/1)
#   67|   						);
#   68|   				}
#   69|-> 			} else if (ldns_rr_get_type(rr) == LDNS_RR_TYPE_DNSKEY || 
#   70|   					   ldns_rr_get_type(rr) == LDNS_RR_TYPE_DS) {
#   71|   				ldns_rr_list_push_rr(key_list, rr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:36: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:38:1: enter_function: entry to 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:48:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:49:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:56:16: branch_true: following 'true' branch (when 'line_len != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: call_function: calling 'read_line' from 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: return_function: returning to 'read_key_file' from 'read_line'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:59:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:61:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:36: danger: 'fopen(filename, "r")' leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
#   67|   						);
#   68|   				}
#   69|-> 			} else if (ldns_rr_get_type(rr) == LDNS_RR_TYPE_DNSKEY || 
#   70|   					   ldns_rr_get_type(rr) == LDNS_RR_TYPE_DS) {
#   71|   				ldns_rr_list_push_rr(key_list, rr);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def198]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:70:44: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:38:1: enter_function: entry to 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:48:22: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:49:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:56:16: branch_true: following 'true' branch (when 'line_len != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: call_function: calling 'read_line' from 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: return_function: returning to 'read_key_file' from 'read_line'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:59:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:61:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:35: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:70:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:70:44: danger: 'fopen(filename, "r")' leaks here; was opened at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
#   68|   				}
#   69|   			} else if (ldns_rr_get_type(rr) == LDNS_RR_TYPE_DNSKEY || 
#   70|-> 					   ldns_rr_get_type(rr) == LDNS_RR_TYPE_DS) {
#   71|   				ldns_rr_list_push_rr(key_list, rr);
#   72|   				key_count++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:70:44: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:38:1: enter_function: entry to 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:48:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:49:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:56:16: branch_true: following 'true' branch (when 'line_len != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: call_function: calling 'read_line' from 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: return_function: returning to 'read_key_file' from 'read_line'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:59:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:61:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:35: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:70:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:70:44: danger: 'fopen(filename, "r")' leaks here; was allocated at [(2)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/1)
#   68|   				}
#   69|   			} else if (ldns_rr_get_type(rr) == LDNS_RR_TYPE_DNSKEY || 
#   70|-> 					   ldns_rr_get_type(rr) == LDNS_RR_TYPE_DS) {
#   71|   				ldns_rr_list_push_rr(key_list, rr);
#   72|   				key_count++;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def200]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:71:33: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:38:1: enter_function: entry to 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:48:22: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:49:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:56:16: branch_true: following 'true' branch (when 'line_len != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: call_function: calling 'read_line' from 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: return_function: returning to 'read_key_file' from 'read_line'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:59:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:61:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:71:33: danger: 'fopen(filename, "r")' leaks here; was opened at [(2)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/1)
#   69|   			} else if (ldns_rr_get_type(rr) == LDNS_RR_TYPE_DNSKEY || 
#   70|   					   ldns_rr_get_type(rr) == LDNS_RR_TYPE_DS) {
#   71|-> 				ldns_rr_list_push_rr(key_list, rr);
#   72|   				key_count++;
#   73|   			} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:71:33: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:38:1: enter_function: entry to 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:48:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:49:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:56:16: branch_true: following 'true' branch (when 'line_len != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: call_function: calling 'read_line' from 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: return_function: returning to 'read_key_file' from 'read_line'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:59:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:61:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:71:33: danger: 'fopen(filename, "r")' leaks here; was allocated at [(2)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/1)
#   69|   			} else if (ldns_rr_get_type(rr) == LDNS_RR_TYPE_DNSKEY || 
#   70|   					   ldns_rr_get_type(rr) == LDNS_RR_TYPE_DS) {
#   71|-> 				ldns_rr_list_push_rr(key_list, rr);
#   72|   				key_count++;
#   73|   			} else {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def202]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:74:33: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:38:1: enter_function: entry to 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:48:22: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:49:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:56:16: branch_true: following 'true' branch (when 'line_len != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: call_function: calling 'read_line' from 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: return_function: returning to 'read_key_file' from 'read_line'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:59:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:61:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:35: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:70:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:74:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:74:33: danger: 'fopen(filename, "r")' leaks here; was opened at [(2)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/1)
#   72|   				key_count++;
#   73|   			} else {
#   74|-> 				ldns_rr_free(rr);
#   75|   			}
#   76|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:74:33: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:38:1: enter_function: entry to 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:48:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:49:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:56:16: branch_true: following 'true' branch (when 'line_len != -1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: call_function: calling 'read_line' from 'read_key_file'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:57:28: return_function: returning to 'read_key_file' from 'read_line'
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:59:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:61:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:35: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:70:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:69:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:74:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/drill_util.c:74:33: danger: 'fopen(filename, "r")' leaks here; was allocated at [(2)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/1)
#   72|   				key_count++;
#   73|   			} else {
#   74|-> 				ldns_rr_free(rr);
#   75|   			}
#   76|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def204]
ldns-1.8.4/ldns-1.8.4_python3/drill/root.c:105:18: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/drill/root.c:99:14: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/drill/root.c:100:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/root.c:105:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/root.c:105:18: danger: 'fopen(filename, "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  103|   	}
#  104|   
#  105|-> 	status = ldns_zone_new_frm_fp_l(&z, fp, NULL, 0, 0, &line_nr);
#  106|   	fclose(fp);
#  107|   	if (status != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def205]
ldns-1.8.4/ldns-1.8.4_python3/drill/root.c:105:18: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/drill/root.c:99:14: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/root.c:100:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/root.c:105:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/root.c:105:18: danger: 'fopen(filename, "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  103|   	}
#  104|   
#  105|-> 	status = ldns_zone_new_frm_fp_l(&z, fp, NULL, 0, 0, &line_nr);
#  106|   	fclose(fp);
#  107|   	if (status != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:69:13: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:115:1: enter_function: entry to 'do_secure_trace'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:433:21: call_function: calling 'get_dnssec_pkt' from 'do_secure_trace'
#   67|   {
#   68|   	ldns_pkt *p = NULL;
#   69|-> 	p = ldns_resolver_query(r, name, t, LDNS_RR_CLASS_IN, 0); 
#   70|   	if (!p) {
#   71|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:74:25: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:115:1: enter_function: entry to 'do_secure_trace'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:433:21: call_function: calling 'get_dnssec_pkt' from 'do_secure_trace'
#   72|   	} else {
#   73|   		if (verbosity >= 5) {
#   74|-> 			ldns_pkt_print(stdout, p);
#   75|   		}
#   76|   		return p;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:87:16: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:115:1: enter_function: entry to 'do_secure_trace'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:434:24: call_function: inlined call to 'get_key' from 'do_secure_trace'
#   85|   get_key(ldns_pkt *p, ldns_rdf *apexname, ldns_rr_list **rrlist, ldns_rr_list **opt_sig)
#   86|   {
#   87|-> 	return get_dnssec_rr(p, apexname, LDNS_RR_TYPE_DNSKEY, rrlist, opt_sig);
#   88|   }
#   89|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  246|   		goto done;
#  247|   	}
#  248|-> 	labels[0] = ldns_dname_new_frm_str(LDNS_ROOT_LABEL_STR);
#  249|   	labels[1] = ldns_rdf_clone(name);
#  250|   	for(i = 2 ; i < (ssize_t)labels_count + 2; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:249:21: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:249:21: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
#  247|   	}
#  248|   	labels[0] = ldns_dname_new_frm_str(LDNS_ROOT_LABEL_STR);
#  249|-> 	labels[1] = ldns_rdf_clone(name);
#  250|   	for(i = 2 ; i < (ssize_t)labels_count + 2; i++) {
#  251|   		labels[i] = ldns_dname_left_chop(labels[i - 1]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:251:29: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:250:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:251:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:251:29: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
#  249|   	labels[1] = ldns_rdf_clone(name);
#  250|   	for(i = 2 ; i < (ssize_t)labels_count + 2; i++) {
#  251|-> 		labels[i] = ldns_dname_left_chop(labels[i - 1]);
#  252|   	}
#  253|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:26: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:26: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
#  256|   	 */
#  257|   	for(i = (ssize_t)labels_count + 1; i > 0; i--) {
#  258|-> 		status = ldns_resolver_send(&local_p, res, labels[i], LDNS_RR_TYPE_NS, c, 0);
#  259|   		if (status != LDNS_STATUS_OK) {
#  260|   			fprintf(stderr, "Error sending query: %s\n", ldns_get_errorstr_by_id(status));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:260:25: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:260:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:260:25: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#  258|   		status = ldns_resolver_send(&local_p, res, labels[i], LDNS_RR_TYPE_NS, c, 0);
#  259|   		if (status != LDNS_STATUS_OK) {
#  260|-> 			fprintf(stderr, "Error sending query: %s\n", ldns_get_errorstr_by_id(status));
#  261|   			result = status;
#  262|   			goto done;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:268:25: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:268:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:268:25: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
#  266|   
#  267|   		if (verbosity >= 5) {
#  268|-> 			ldns_pkt_print(stdout, local_p);
#  269|   		}
#  270|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:271:27: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:271:27: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
#  269|   		}
#  270|   
#  271|-> 		new_nss = ldns_pkt_rr_list_by_type(local_p,
#  272|   					LDNS_RR_TYPE_NS, LDNS_SECTION_ANSWER);
#  273|    		if (!new_nss) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:275:35: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:273:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:275:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:275:35: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
#  273|    		if (!new_nss) {
#  274|   			/* if it's a delegation, servers put them in the auth section */
#  275|-> 			new_nss = ldns_pkt_rr_list_by_type(local_p,
#  276|   					LDNS_RR_TYPE_NS, LDNS_SECTION_AUTHORITY);
#  277|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:283:40: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:283:40: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
#  281|   		   cases */
#  282|   		if (new_nss || i > 1) {
#  283|-> 			for(j = 0; j < ldns_rr_list_rr_count(new_nss); j++) {
#  284|   				ns_rr = ldns_rr_list_rr(new_nss, j);
#  285|   				pop = ldns_rr_rdf(ns_rr, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:284:41: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:283:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:284:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:284:41: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
#  282|   		if (new_nss || i > 1) {
#  283|   			for(j = 0; j < ldns_rr_list_rr_count(new_nss); j++) {
#  284|-> 				ns_rr = ldns_rr_list_rr(new_nss, j);
#  285|   				pop = ldns_rr_rdf(ns_rr, 0);
#  286|   				if (!pop) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:285:39: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:283:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:284:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:285:39: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
#  283|   			for(j = 0; j < ldns_rr_list_rr_count(new_nss); j++) {
#  284|   				ns_rr = ldns_rr_list_rr(new_nss, j);
#  285|-> 				pop = ldns_rr_rdf(ns_rr, 0);
#  286|   				if (!pop) {
#  287|   					printf("nopo\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:293:37: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:283:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:284:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:286:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:293:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:293:37: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
#  291|   				/* trust glue? */
#  292|   				new_ns_addr = NULL;
#  293|-> 				if (ldns_dname_is_subdomain(pop, labels[i])) {
#  294|   					new_ns_addr = ldns_pkt_rr_list_by_name_and_type(local_p, pop, LDNS_RR_TYPE_A, LDNS_SECTION_ADDITIONAL);
#  295|   				}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:294:55: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:283:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:284:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:286:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:293:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:293:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:294:55: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:294:55: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
#  292|   				new_ns_addr = NULL;
#  293|   				if (ldns_dname_is_subdomain(pop, labels[i])) {
#  294|-> 					new_ns_addr = ldns_pkt_rr_list_by_name_and_type(local_p, pop, LDNS_RR_TYPE_A, LDNS_SECTION_ADDITIONAL);
#  295|   				}
#  296|   				if (!new_ns_addr || ldns_rr_list_rr_count(new_ns_addr) == 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:296:53: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:283:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:284:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:286:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:293:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:293:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:294:55: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:296:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:296:53: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:296:53: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
#  294|   					new_ns_addr = ldns_pkt_rr_list_by_name_and_type(local_p, pop, LDNS_RR_TYPE_A, LDNS_SECTION_ADDITIONAL);
#  295|   				}
#  296|-> 				if (!new_ns_addr || ldns_rr_list_rr_count(new_ns_addr) == 0) {
#  297|   					new_ns_addr = ldns_get_rr_list_addr_by_name(res, pop, c, 0);
#  298|   				}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def223]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:297:55: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:283:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:284:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:286:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:293:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:297:55: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
#  295|   				}
#  296|   				if (!new_ns_addr || ldns_rr_list_rr_count(new_ns_addr) == 0) {
#  297|-> 					new_ns_addr = ldns_get_rr_list_addr_by_name(res, pop, c, 0);
#  298|   				}
#  299|   				if (!new_ns_addr || ldns_rr_list_rr_count(new_ns_addr) == 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:299:53: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:283:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:284:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:286:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:293:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:299:36: branch_false: following 'false' branch (when 'new_ns_addr' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:299:53: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:299:53: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/8)
#  297|   					new_ns_addr = ldns_get_rr_list_addr_by_name(res, pop, c, 0);
#  298|   				}
#  299|-> 				if (!new_ns_addr || ldns_rr_list_rr_count(new_ns_addr) == 0) {
#  300|   					new_ns_addr = ldns_get_rr_list_addr_by_name(local_res, pop, c, 0);
#  301|   				}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:300:55: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:283:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:284:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:286:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:293:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:300:55: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/8)
#  298|   				}
#  299|   				if (!new_ns_addr || ldns_rr_list_rr_count(new_ns_addr) == 0) {
#  300|-> 					new_ns_addr = ldns_get_rr_list_addr_by_name(local_res, pop, c, 0);
#  301|   				}
#  302|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:305:51: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:283:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:284:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:286:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:293:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:303:36: branch_true: following 'true' branch (when 'new_ns_addr' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:305:51: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:305:51: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/8)
#  303|   				if (new_ns_addr) {
#  304|   					old_ns_addr = ns_addr;
#  305|-> 					ns_addr = ldns_rr_list_cat_clone(ns_addr, new_ns_addr);
#  306|   					ldns_rr_list_deep_free(old_ns_addr);
#  307|   				}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:306:41: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:283:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:284:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:286:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:293:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:303:36: branch_true: following 'true' branch (when 'new_ns_addr' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:305:51: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:306:41: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/8)
#  304|   					old_ns_addr = ns_addr;
#  305|   					ns_addr = ldns_rr_list_cat_clone(ns_addr, new_ns_addr);
#  306|-> 					ldns_rr_list_deep_free(old_ns_addr);
#  307|   				}
#  308|   				ldns_rr_list_deep_free(new_ns_addr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:308:33: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:283:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:284:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:286:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:293:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:303:36: branch_false: following 'false' branch (when 'new_ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:308:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:308:33: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/8)
#  306|   					ldns_rr_list_deep_free(old_ns_addr);
#  307|   				}
#  308|-> 				ldns_rr_list_deep_free(new_ns_addr);
#  309|   			}
#  310|   			ldns_rr_list_deep_free(new_nss);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:310:25: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:310:25: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/8)
#  308|   				ldns_rr_list_deep_free(new_ns_addr);
#  309|   			}
#  310|-> 			ldns_rr_list_deep_free(new_nss);
#  311|   
#  312|   			if (ns_addr) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/8)
#  321|   				ldns_rr_list_deep_free(ns_addr);
#  322|   			} else {
#  323|-> 				status = ldns_verify_denial(local_p, labels[i], LDNS_RR_TYPE_NS, &nsec_rrs, &nsec_rr_sigs);
#  324|   
#  325|   				/* verify the nsec3 themselves*/

Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:328:41: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:326:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:327:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:328:41: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/8)
#  326|   				if (verbosity >= 4) {
#  327|   					printf("NSEC(3) Records to verify:\n");
#  328|-> 					ldns_rr_list_print(stdout, nsec_rrs);
#  329|   					printf("With signatures:\n");
#  330|   					ldns_rr_list_print(stdout, nsec_rr_sigs);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:330:41: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:326:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:327:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:330:41: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/8)
#  328|   					ldns_rr_list_print(stdout, nsec_rrs);
#  329|   					printf("With signatures:\n");
#  330|-> 					ldns_rr_list_print(stdout, nsec_rr_sigs);
#  331|   					printf("correct keys:\n");
#  332|   					ldns_rr_list_print(stdout, correct_key_list);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:332:41: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:326:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:327:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:332:41: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/8)
#  330|   					ldns_rr_list_print(stdout, nsec_rr_sigs);
#  331|   					printf("correct keys:\n");
#  332|-> 					ldns_rr_list_print(stdout, correct_key_list);
#  333|   				}
#  334|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:336:51: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:335:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:336:51: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:336:51: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/8)
#  334|   
#  335|   				if (status == LDNS_STATUS_OK) {
#  336|-> 					if ((st = ldns_verify(nsec_rrs, nsec_rr_sigs, trusted_keys, NULL)) == LDNS_STATUS_OK) {
#  337|   						fprintf(stdout, "%s ", TRUST);
#  338|   						fprintf(stdout, "Existence denied: ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:339:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:335:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:336:51: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:336:44: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:337:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:339:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/8)
#  337|   						fprintf(stdout, "%s ", TRUST);
#  338|   						fprintf(stdout, "Existence denied: ");
#  339|-> 						ldns_rdf_print(stdout, labels[i]);
#  340|   	/*
#  341|   						if (descriptor && descriptor->_name) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:347:58: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:335:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:336:51: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:336:44: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:347:58: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:347:58: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/8)
#  345|   						}
#  346|   	*/					fprintf(stdout, " NS\n");
#  347|-> 					} else if ((st = ldns_verify(nsec_rrs, nsec_rr_sigs, correct_key_list, NULL)) == LDNS_STATUS_OK) {
#  348|   						fprintf(stdout, "%s ", SELF);
#  349|   						fprintf(stdout, "Existence denied: ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:350:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:335:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:336:51: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:336:44: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:347:58: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:347:51: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:348:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:350:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/8)
#  348|   						fprintf(stdout, "%s ", SELF);
#  349|   						fprintf(stdout, "Existence denied: ");
#  350|-> 						ldns_rdf_print(stdout, labels[i]);
#  351|   	/*
#  352|   						if (descriptor && descriptor->_name) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:363:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:335:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:336:51: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:336:44: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:347:58: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:347:51: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:360:49: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:363:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/8)
#  361|   						result = 1;
#  362|   						printf(";; Error verifying denial of existence for name ");
#  363|-> 						ldns_rdf_print(stdout, labels[i]);
#  364|   	/*
#  365|   						printf(" type ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:371:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:335:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:336:51: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:336:44: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:347:58: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:347:51: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:360:49: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:371:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/8)
#  369|   							printf("TYPE%u", t);
#  370|   						}
#  371|-> 	*/					printf("NS: %s\n", ldns_get_errorstr_by_id(st));
#  372|   					}
#  373|   				} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:377:41: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:335:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:374:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:377:41: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/8)
#  375|   					result = 1;
#  376|   					printf(";; Error verifying denial of existence for name ");
#  377|-> 					ldns_rdf_print(stdout, labels[i]);
#  378|   					printf("NS: %s\n", ldns_get_errorstr_by_id(status));
#  379|   				}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def241]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:378:41: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:335:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:374:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:378:41: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/8)
#  376|   					printf(";; Error verifying denial of existence for name ");
#  377|   					ldns_rdf_print(stdout, labels[i]);
#  378|-> 					printf("NS: %s\n", ldns_get_errorstr_by_id(status));
#  379|   				}
#  380|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:383:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:383:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/8)
#  381|   				/* there might be an empty non-terminal, in which case we need to continue */
#  382|   				ent = false;
#  383|-> 				for (j = 0; j < ldns_rr_list_rr_count(nsec_rrs); j++) {
#  384|   					nsecrr = ldns_rr_list_rr(nsec_rrs, j);
#  385|   					/* For NSEC when the next name is a subdomain of the question */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:384:50: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:383:45: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:384:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:384:50: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/8)
#  382|   				ent = false;
#  383|   				for (j = 0; j < ldns_rr_list_rr_count(nsec_rrs); j++) {
#  384|-> 					nsecrr = ldns_rr_list_rr(nsec_rrs, j);
#  385|   					/* For NSEC when the next name is a subdomain of the question */
#  386|   					if (ldns_rr_get_type(nsecrr) == LDNS_RR_TYPE_NSEC &&

Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:386:45: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:383:45: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:384:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:386:45: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/8)
#  384|   					nsecrr = ldns_rr_list_rr(nsec_rrs, j);
#  385|   					/* For NSEC when the next name is a subdomain of the question */
#  386|-> 					if (ldns_rr_get_type(nsecrr) == LDNS_RR_TYPE_NSEC &&
#  387|   							ldns_dname_is_subdomain(ldns_rr_rdf(nsecrr, 0), labels[i])) {
#  388|   						ent = true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:387:57: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:383:45: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:384:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:386:44: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:387:81: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:387:57: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/8)
#  385|   					/* For NSEC when the next name is a subdomain of the question */
#  386|   					if (ldns_rr_get_type(nsecrr) == LDNS_RR_TYPE_NSEC &&
#  387|-> 							ldns_dname_is_subdomain(ldns_rr_rdf(nsecrr, 0), labels[i])) {
#  388|   						ent = true;
#  389|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:387:81: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:383:45: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:384:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:386:44: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:387:81: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:387:81: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/8)
#  385|   					/* For NSEC when the next name is a subdomain of the question */
#  386|   					if (ldns_rr_get_type(nsecrr) == LDNS_RR_TYPE_NSEC &&
#  387|-> 							ldns_dname_is_subdomain(ldns_rr_rdf(nsecrr, 0), labels[i])) {
#  388|   						ent = true;
#  389|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:391:52: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:383:45: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:384:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:391:52: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/8)
#  389|   
#  390|   					/* For NSEC3, the hash matches the name and the type bitmap is empty*/
#  391|-> 					} else if (ldns_rr_get_type(nsecrr) == LDNS_RR_TYPE_NSEC3) {
#  392|   						hashed_name = ldns_nsec3_hash_name_frm_nsec3(nsecrr, labels[i]);
#  393|   						label0 = ldns_dname_label(ldns_rr_owner(nsecrr), 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:392:63: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:383:45: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:384:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:391:51: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:392:63: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:392:63: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/8)
#  390|   					/* For NSEC3, the hash matches the name and the type bitmap is empty*/
#  391|   					} else if (ldns_rr_get_type(nsecrr) == LDNS_RR_TYPE_NSEC3) {
#  392|-> 						hashed_name = ldns_nsec3_hash_name_frm_nsec3(nsecrr, labels[i]);
#  393|   						label0 = ldns_dname_label(ldns_rr_owner(nsecrr), 0);
#  394|   						if (hashed_name && label0 &&

Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:393:58: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:383:45: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:384:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:391:51: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:392:63: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:393:58: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/8)
#  391|   					} else if (ldns_rr_get_type(nsecrr) == LDNS_RR_TYPE_NSEC3) {
#  392|   						hashed_name = ldns_nsec3_hash_name_frm_nsec3(nsecrr, labels[i]);
#  393|-> 						label0 = ldns_dname_label(ldns_rr_owner(nsecrr), 0);
#  394|   						if (hashed_name && label0 &&
#  395|   								ldns_dname_compare(hashed_name, label0) == 0 &&

Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:393:75: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:383:45: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:384:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:391:51: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:392:63: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:393:75: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/8)
#  391|   					} else if (ldns_rr_get_type(nsecrr) == LDNS_RR_TYPE_NSEC3) {
#  392|   						hashed_name = ldns_nsec3_hash_name_frm_nsec3(nsecrr, labels[i]);
#  393|-> 						label0 = ldns_dname_label(ldns_rr_owner(nsecrr), 0);
#  394|   						if (hashed_name && label0 &&
#  395|   								ldns_dname_compare(hashed_name, label0) == 0 &&

Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:395:65: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:383:45: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:384:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:391:51: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:392:63: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:394:52: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:395:65: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:395:65: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/8)
#  393|   						label0 = ldns_dname_label(ldns_rr_owner(nsecrr), 0);
#  394|   						if (hashed_name && label0 &&
#  395|-> 								ldns_dname_compare(hashed_name, label0) == 0 &&
#  396|   								ldns_nsec3_bitmap(nsecrr) == NULL) {
#  397|   							ent = true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:396:65: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:383:45: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:384:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:391:51: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:392:63: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:394:52: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:395:65: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:394:53: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:396:65: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:396:65: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/8)
#  394|   						if (hashed_name && label0 &&
#  395|   								ldns_dname_compare(hashed_name, label0) == 0 &&
#  396|-> 								ldns_nsec3_bitmap(nsecrr) == NULL) {
#  397|   							ent = true;
#  398|   						}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:408:41: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:407:36: branch_false: following 'false' branch (when 'ent == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:408:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:408:41: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/8)
#  406|   				}
#  407|   				if (!ent) {
#  408|-> 					ldns_rr_list_deep_free(nsec_rrs);
#  409|   					ldns_rr_list_deep_free(nsec_rr_sigs);
#  410|   					ldns_pkt_free(local_p);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:409:41: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:407:36: branch_false: following 'false' branch (when 'ent == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:408:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:409:41: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/8)
#  407|   				if (!ent) {
#  408|   					ldns_rr_list_deep_free(nsec_rrs);
#  409|-> 					ldns_rr_list_deep_free(nsec_rr_sigs);
#  410|   					ldns_pkt_free(local_p);
#  411|   					goto done;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:410:41: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:312:28: branch_false: following 'false' branch (when 'ns_addr' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:323:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:407:36: branch_false: following 'false' branch (when 'ent == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:408:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:410:41: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/8)
#  408|   					ldns_rr_list_deep_free(nsec_rrs);
#  409|   					ldns_rr_list_deep_free(nsec_rr_sigs);
#  410|-> 					ldns_pkt_free(local_p);
#  411|   					goto done;
#  412|   				} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/8)
#  421|   			}
#  422|   		}
#  423|-> 		ldns_pkt_free(local_p);
#  424|   
#  425|   		fprintf(stdout, ";; Domain: ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:426:17: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:426:17: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/8)
#  424|   
#  425|   		fprintf(stdout, ";; Domain: ");
#  426|-> 		ldns_rdf_print(stdout, labels[i]);
#  427|   		fprintf(stdout, "\n");
#  428|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/8)
#  435|   		if (key_sig_list) {
#  436|   			if (key_list) {
#  437|-> 				current_correct_keys = ldns_rr_list_new();
#  438|   				if ((st = ldns_verify(key_list, key_sig_list, key_list, current_correct_keys)) ==
#  439|   						LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:43: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:43: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/8)
#  436|   			if (key_list) {
#  437|   				current_correct_keys = ldns_rr_list_new();
#  438|-> 				if ((st = ldns_verify(key_list, key_sig_list, key_list, current_correct_keys)) ==
#  439|   						LDNS_STATUS_OK) {
#  440|   					/* add all signed keys (don't just add current_correct, you'd miss

Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:442:57: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:442:57: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/8)
#  440|   					/* add all signed keys (don't just add current_correct, you'd miss
#  441|   					 * the zsk's then */
#  442|-> 					for (j = 0; j < ldns_rr_list_rr_count(key_list); j++) {
#  443|   						ldns_rr_list_push_rr(correct_key_list, ldns_rr_clone(ldns_rr_list_rr(key_list, j)));
#  444|   					}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:443:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:442:53: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:443:102: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:443:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/8)
#  441|   					 * the zsk's then */
#  442|   					for (j = 0; j < ldns_rr_list_rr_count(key_list); j++) {
#  443|-> 						ldns_rr_list_push_rr(correct_key_list, ldns_rr_clone(ldns_rr_list_rr(key_list, j)));
#  444|   					}
#  445|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:443:88: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:442:53: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:443:102: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:443:88: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/8)
#  441|   					 * the zsk's then */
#  442|   					for (j = 0; j < ldns_rr_list_rr_count(key_list); j++) {
#  443|-> 						ldns_rr_list_push_rr(correct_key_list, ldns_rr_clone(ldns_rr_list_rr(key_list, j)));
#  444|   					}
#  445|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:443:102: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:442:53: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:443:102: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:443:102: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/8)
#  441|   					 * the zsk's then */
#  442|   					for (j = 0; j < ldns_rr_list_rr_count(key_list); j++) {
#  443|-> 						ldns_rr_list_push_rr(correct_key_list, ldns_rr_clone(ldns_rr_list_rr(key_list, j)));
#  444|   					}
#  445|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:450:57: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:450:57: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/8)
#  448|   					 * keys are also trusted */
#  449|   					new_keys_trusted = false;
#  450|-> 					for (k = 0; k < ldns_rr_list_rr_count(current_correct_keys); k++) {
#  451|   						for (j = 0; j < ldns_rr_list_rr_count(trusted_ds_rrs); j++) {
#  452|   							if (ldns_rr_compare_ds(ldns_rr_list_rr(current_correct_keys, k),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:451:65: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:450:53: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:451:65: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/8)
#  449|   					new_keys_trusted = false;
#  450|   					for (k = 0; k < ldns_rr_list_rr_count(current_correct_keys); k++) {
#  451|-> 						for (j = 0; j < ldns_rr_list_rr_count(trusted_ds_rrs); j++) {
#  452|   							if (ldns_rr_compare_ds(ldns_rr_list_rr(current_correct_keys, k),
#  453|   								    ldns_rr_list_rr(trusted_ds_rrs, j))) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:452:61: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:450:53: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:451:61: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:453:69: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:452:61: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/8)
#  450|   					for (k = 0; k < ldns_rr_list_rr_count(current_correct_keys); k++) {
#  451|   						for (j = 0; j < ldns_rr_list_rr_count(trusted_ds_rrs); j++) {
#  452|-> 							if (ldns_rr_compare_ds(ldns_rr_list_rr(current_correct_keys, k),
#  453|   								    ldns_rr_list_rr(trusted_ds_rrs, j))) {
#  454|   								new_keys_trusted = true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:452:80: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:450:53: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:451:61: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:453:69: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:452:80: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/8)
#  450|   					for (k = 0; k < ldns_rr_list_rr_count(current_correct_keys); k++) {
#  451|   						for (j = 0; j < ldns_rr_list_rr_count(trusted_ds_rrs); j++) {
#  452|-> 							if (ldns_rr_compare_ds(ldns_rr_list_rr(current_correct_keys, k),
#  453|   								    ldns_rr_list_rr(trusted_ds_rrs, j))) {
#  454|   								new_keys_trusted = true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:453:69: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:450:53: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:451:61: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:453:69: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:453:69: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/8)
#  451|   						for (j = 0; j < ldns_rr_list_rr_count(trusted_ds_rrs); j++) {
#  452|   							if (ldns_rr_compare_ds(ldns_rr_list_rr(current_correct_keys, k),
#  453|-> 								    ldns_rr_list_rr(trusted_ds_rrs, j))) {
#  454|   								new_keys_trusted = true;
#  455|   							}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:460:57: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:460:57: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/8)
#  458|   
#  459|   					/* also all keys are trusted if one of the current correct keys is trusted */
#  460|-> 					for (k = 0; k < ldns_rr_list_rr_count(current_correct_keys); k++) {
#  461|   						for (j = 0; j < ldns_rr_list_rr_count(trusted_keys); j++) {
#  462|   							if (ldns_rr_compare(ldns_rr_list_rr(current_correct_keys, k),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:461:65: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:460:53: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:461:65: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/8)
#  459|   					/* also all keys are trusted if one of the current correct keys is trusted */
#  460|   					for (k = 0; k < ldns_rr_list_rr_count(current_correct_keys); k++) {
#  461|-> 						for (j = 0; j < ldns_rr_list_rr_count(trusted_keys); j++) {
#  462|   							if (ldns_rr_compare(ldns_rr_list_rr(current_correct_keys, k),
#  463|   								            ldns_rr_list_rr(trusted_keys, j)) == 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:462:61: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:460:53: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:461:61: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:463:77: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:462:61: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/8)
#  460|   					for (k = 0; k < ldns_rr_list_rr_count(current_correct_keys); k++) {
#  461|   						for (j = 0; j < ldns_rr_list_rr_count(trusted_keys); j++) {
#  462|-> 							if (ldns_rr_compare(ldns_rr_list_rr(current_correct_keys, k),
#  463|   								            ldns_rr_list_rr(trusted_keys, j)) == 0) {
#  464|   								            new_keys_trusted = true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:462:77: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:460:53: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:461:61: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:463:77: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:462:77: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/8)
#  460|   					for (k = 0; k < ldns_rr_list_rr_count(current_correct_keys); k++) {
#  461|   						for (j = 0; j < ldns_rr_list_rr_count(trusted_keys); j++) {
#  462|-> 							if (ldns_rr_compare(ldns_rr_list_rr(current_correct_keys, k),
#  463|   								            ldns_rr_list_rr(trusted_keys, j)) == 0) {
#  464|   								            new_keys_trusted = true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:463:77: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:460:53: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:461:61: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:463:77: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:463:77: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/8)
#  461|   						for (j = 0; j < ldns_rr_list_rr_count(trusted_keys); j++) {
#  462|   							if (ldns_rr_compare(ldns_rr_list_rr(current_correct_keys, k),
#  463|-> 								            ldns_rr_list_rr(trusted_keys, j)) == 0) {
#  464|   								            new_keys_trusted = true;
#  465|   							}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:479:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:470:44: branch_false: following 'false' branch (when 'new_keys_trusted == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:476:53: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:479:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/8)
#  477|   							printf(";; Signature ok but no chain to a trusted key or ds record\n");
#  478|   						}
#  479|-> 						print_rr_list_abbr(stdout, key_list, SELF);
#  480|   						ldns_rr_list_deep_free(key_list);
#  481|   						key_list = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:480:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:470:44: branch_false: following 'false' branch (when 'new_keys_trusted == 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:476:53: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:480:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/8)
#  478|   						}
#  479|   						print_rr_list_abbr(stdout, key_list, SELF);
#  480|-> 						ldns_rr_list_deep_free(key_list);
#  481|   						key_list = NULL;
#  482|   					}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:484:41: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:484:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:484:41: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/8)
#  482|   					}
#  483|   				} else {
#  484|-> 					print_rr_list_abbr(stdout, key_list, BOGUS);
#  485|   					result = 2;
#  486|   					ldns_rr_list_deep_free(key_list);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:486:41: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:438:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:484:41: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:486:41: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/8)
#  484|   					print_rr_list_abbr(stdout, key_list, BOGUS);
#  485|   					result = 2;
#  486|-> 					ldns_rr_list_deep_free(key_list);
#  487|   					key_list = NULL;
#  488|   				}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:489:33: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:437:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:489:33: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/72/codeFlows/0/threadFlows/0/locations/8)
#  487|   					key_list = NULL;
#  488|   				}
#  489|-> 				ldns_rr_list_free(current_correct_keys);
#  490|   				current_correct_keys = NULL;
#  491|   			} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:493:33: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:436:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:492:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:493:33: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/73/codeFlows/0/threadFlows/0/locations/8)
#  491|   			} else {
#  492|   				printf(";; No DNSKEY record found for ");
#  493|-> 				ldns_rdf_print(stdout, labels[i]);
#  494|   				printf("\n");
#  495|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:498:17: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:498:17: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/74/codeFlows/0/threadFlows/0/locations/8)
#  496|   		}
#  497|   
#  498|-> 		ldns_pkt_free(p);
#  499|   		ldns_rr_list_deep_free(key_sig_list);
#  500|   		key_sig_list = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:499:17: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:499:17: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/75/codeFlows/0/threadFlows/0/locations/8)
#  497|   
#  498|   		ldns_pkt_free(p);
#  499|-> 		ldns_rr_list_deep_free(key_sig_list);
#  500|   		key_sig_list = NULL;
#  501|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:662:32: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:662:32: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/76/codeFlows/0/threadFlows/0/locations/8)
#  660|   			/* if this is the last label, just verify the data and stop */
#  661|   			p = get_dnssec_pkt(res, labels[i], t);
#  662|-> 			(void) get_dnssec_rr(p, labels[i], t, &dataset, &key_sig_list);
#  663|   			if (dataset && ldns_rr_list_rr_count(dataset) > 0) {
#  664|   				if (key_sig_list && ldns_rr_list_rr_count(key_sig_list) > 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:663:40: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:663:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:663:40: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:663:40: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/8)
#  661|   			p = get_dnssec_pkt(res, labels[i], t);
#  662|   			(void) get_dnssec_rr(p, labels[i], t, &dataset, &key_sig_list);
#  663|-> 			if (dataset && ldns_rr_list_rr_count(dataset) > 0) {
#  664|   				if (key_sig_list && ldns_rr_list_rr_count(key_sig_list) > 0) {
#  665|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:664:53: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:663:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:664:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:664:53: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:664:53: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/78/codeFlows/0/threadFlows/0/locations/8)
#  662|   			(void) get_dnssec_rr(p, labels[i], t, &dataset, &key_sig_list);
#  663|   			if (dataset && ldns_rr_list_rr_count(dataset) > 0) {
#  664|-> 				if (key_sig_list && ldns_rr_list_rr_count(key_sig_list) > 0) {
#  665|   
#  666|   					/* If this is a wildcard, you must be able to deny exact match */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:667:51: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:663:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:664:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:667:51: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/79/codeFlows/0/threadFlows/0/locations/8)
#  665|   
#  666|   					/* If this is a wildcard, you must be able to deny exact match */
#  667|-> 					if ((st = ldns_verify(dataset, key_sig_list, trusted_keys, NULL)) == LDNS_STATUS_OK) {
#  668|   						fprintf(stdout, "%s ", TRUST);
#  669|   						ldns_rr_list_print(stdout, dataset);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def286]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:669:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:663:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:664:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:667:44: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:668:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:669:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/80/codeFlows/0/threadFlows/0/locations/8)
#  667|   					if ((st = ldns_verify(dataset, key_sig_list, trusted_keys, NULL)) == LDNS_STATUS_OK) {
#  668|   						fprintf(stdout, "%s ", TRUST);
#  669|-> 						ldns_rr_list_print(stdout, dataset);
#  670|   					} else if ((st = ldns_verify(dataset, key_sig_list, correct_key_list, NULL)) == LDNS_STATUS_OK) {
#  671|   						fprintf(stdout, "%s ", SELF);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:670:58: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:663:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:664:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:667:44: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:670:58: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:670:58: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/81/codeFlows/0/threadFlows/0/locations/8)
#  668|   						fprintf(stdout, "%s ", TRUST);
#  669|   						ldns_rr_list_print(stdout, dataset);
#  670|-> 					} else if ((st = ldns_verify(dataset, key_sig_list, correct_key_list, NULL)) == LDNS_STATUS_OK) {
#  671|   						fprintf(stdout, "%s ", SELF);
#  672|   						ldns_rr_list_print(stdout, dataset);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:672:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:663:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:664:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:667:44: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:670:58: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:670:51: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:671:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:672:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/82/codeFlows/0/threadFlows/0/locations/8)
#  670|   					} else if ((st = ldns_verify(dataset, key_sig_list, correct_key_list, NULL)) == LDNS_STATUS_OK) {
#  671|   						fprintf(stdout, "%s ", SELF);
#  672|-> 						ldns_rr_list_print(stdout, dataset);
#  673|   					} else {
#  674|   						result = 5;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:676:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:663:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:664:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:667:44: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:670:58: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:670:51: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:675:49: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:676:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/83/codeFlows/0/threadFlows/0/locations/8)
#  674|   						result = 5;
#  675|   						fprintf(stdout, "%s ", BOGUS);
#  676|-> 						ldns_rr_list_print(stdout, dataset);
#  677|   						printf(";; Error: %s\n", ldns_get_errorstr_by_id(st));
#  678|   					}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:677:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:663:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:664:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:667:44: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:670:58: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:670:51: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:675:49: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:677:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/84/codeFlows/0/threadFlows/0/locations/8)
#  675|   						fprintf(stdout, "%s ", BOGUS);
#  676|   						ldns_rr_list_print(stdout, dataset);
#  677|-> 						printf(";; Error: %s\n", ldns_get_errorstr_by_id(st));
#  678|   					}
#  679|   				} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:681:41: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:663:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:681:41: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/85/codeFlows/0/threadFlows/0/locations/8)
#  679|   				} else {
#  680|   					fprintf(stdout, "%s ", UNSIGNED);
#  681|-> 					ldns_rr_list_print(stdout, dataset);
#  682|   				}
#  683|   				ldns_rr_list_deep_free(dataset);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:683:33: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:663:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:683:33: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/86/codeFlows/0/threadFlows/0/locations/8)
#  681|   					ldns_rr_list_print(stdout, dataset);
#  682|   				}
#  683|-> 				ldns_rr_list_deep_free(dataset);
#  684|   			} else {
#  685|   				status = ldns_verify_denial(p, name, t, &nsec_rrs, &nsec_rr_sigs);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:685:42: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:685:42: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/87/codeFlows/0/threadFlows/0/locations/8)
#  683|   				ldns_rr_list_deep_free(dataset);
#  684|   			} else {
#  685|-> 				status = ldns_verify_denial(p, name, t, &nsec_rrs, &nsec_rr_sigs);
#  686|   				if (status == LDNS_STATUS_OK) {
#  687|   					/* verify the nsec3 themselves*/

Error: GCC_ANALYZER_WARNING (CWE-401): [#def294]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:690:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:686:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:688:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:688:44: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:689:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:690:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/88/codeFlows/0/threadFlows/0/locations/8)
#  688|   					if (verbosity >= 5) {
#  689|   						printf("NSEC(3) Records to verify:\n");
#  690|-> 						ldns_rr_list_print(stdout, nsec_rrs);
#  691|   						printf("With signatures:\n");
#  692|   						ldns_rr_list_print(stdout, nsec_rr_sigs);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:692:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:686:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:688:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:688:44: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:689:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:692:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/89/codeFlows/0/threadFlows/0/locations/8)
#  690|   						ldns_rr_list_print(stdout, nsec_rrs);
#  691|   						printf("With signatures:\n");
#  692|-> 						ldns_rr_list_print(stdout, nsec_rr_sigs);
#  693|   						printf("correct keys:\n");
#  694|   						ldns_rr_list_print(stdout, correct_key_list);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:694:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:686:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:688:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:688:44: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:689:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:694:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/90/codeFlows/0/threadFlows/0/locations/8)
#  692|   						ldns_rr_list_print(stdout, nsec_rr_sigs);
#  693|   						printf("correct keys:\n");
#  694|-> 						ldns_rr_list_print(stdout, correct_key_list);
#  695|   /*
#  696|   						printf("trusted keys at %p:\n", trusted_keys);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:700:51: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:686:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:688:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:700:51: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/91/codeFlows/0/threadFlows/0/locations/8)
#  698|   */					}
#  699|   					
#  700|-> 					if ((st = ldns_verify(nsec_rrs, nsec_rr_sigs, trusted_keys, NULL)) == LDNS_STATUS_OK) {
#  701|   						fprintf(stdout, "%s ", TRUST);
#  702|   						fprintf(stdout, "Existence denied: ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:703:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:686:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:688:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:700:44: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:701:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:703:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/92/codeFlows/0/threadFlows/0/locations/8)
#  701|   						fprintf(stdout, "%s ", TRUST);
#  702|   						fprintf(stdout, "Existence denied: ");
#  703|-> 						ldns_rdf_print(stdout, name);
#  704|   						if (descriptor && descriptor->_name) {
#  705|   							printf(" %s", descriptor->_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:710:58: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:686:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:688:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:700:44: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:710:58: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:710:58: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/93/codeFlows/0/threadFlows/0/locations/8)
#  708|   						}
#  709|   						fprintf(stdout, "\n");
#  710|-> 					} else if ((st = ldns_verify(nsec_rrs, nsec_rr_sigs, correct_key_list, NULL)) == LDNS_STATUS_OK) {
#  711|   						fprintf(stdout, "%s ", SELF);
#  712|   						fprintf(stdout, "Existence denied: ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:713:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:686:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:688:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:700:44: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:710:58: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:710:51: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:711:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:713:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/94/codeFlows/0/threadFlows/0/locations/8)
#  711|   						fprintf(stdout, "%s ", SELF);
#  712|   						fprintf(stdout, "Existence denied: ");
#  713|-> 						ldns_rdf_print(stdout, name);
#  714|   						if (descriptor && descriptor->_name) {
#  715|   							printf(" %s", descriptor->_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:724:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:686:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:688:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:700:44: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:710:58: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:710:51: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:722:49: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:724:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/95/codeFlows/0/threadFlows/0/locations/8)
#  722|   						fprintf(stdout, "%s ", BOGUS);
#  723|   						printf("Error verifying denial of existence for ");
#  724|-> 						ldns_rdf_print(stdout, name);
#  725|   						printf(" type ");
#  726|   						if (descriptor && descriptor->_name) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:731:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:686:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:688:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:700:44: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:710:58: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:710:51: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:722:49: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:731:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/96/codeFlows/0/threadFlows/0/locations/8)
#  729|   							printf("TYPE%u", t);
#  730|   						}
#  731|-> 						printf(": %s\n", ldns_get_errorstr_by_id(st));
#  732|   					}
#  733|   					

Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:734:41: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:686:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:688:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:734:41: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/97/codeFlows/0/threadFlows/0/locations/8)
#  732|   					}
#  733|   					
#  734|-> 					ldns_rr_list_deep_free(nsec_rrs);
#  735|   					ldns_rr_list_deep_free(nsec_rr_sigs);
#  736|   				} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:735:41: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:686:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:688:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:735:41: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/98/codeFlows/0/threadFlows/0/locations/8)
#  733|   					
#  734|   					ldns_rr_list_deep_free(nsec_rrs);
#  735|-> 					ldns_rr_list_deep_free(nsec_rr_sigs);
#  736|   				} else {
#  737|   /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:742:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:686:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:739:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:739:44: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:740:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:742:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/99/codeFlows/0/threadFlows/0/locations/8)
#  740|   						printf("%s ", UNSIGNED);
#  741|   						printf("No data found for: ");
#  742|-> 						ldns_rdf_print(stdout, name);
#  743|   						printf(" type ");
#  744|   						if (descriptor && descriptor->_name) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:752:49: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:686:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:739:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:739:44: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:751:49: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:752:49: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/100/codeFlows/0/threadFlows/0/locations/8)
#  750|   					} else {
#  751|   						printf(BOGUS " Unable to verify denial of existence for ");
#  752|-> 						ldns_rdf_print(stdout, name);
#  753|   						printf(" type ");
#  754|   						if (descriptor && descriptor->_name) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:764:25: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:663:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:764:25: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/101/codeFlows/0/threadFlows/0/locations/8)
#  762|   				}
#  763|   			}
#  764|-> 			ldns_pkt_free(p);
#  765|   		}
#  766|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def308]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:769:17: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:663:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:769:17: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/102/codeFlows/0/threadFlows/0/locations/8)
#  767|   		new_nss = NULL;
#  768|   		ns_addr = NULL;
#  769|-> 		ldns_rr_list_deep_free(key_list);
#  770|   		key_list = NULL;
#  771|   		ldns_rr_list_deep_free(key_sig_list);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def309]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:771:17: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:663:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:771:17: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/103/codeFlows/0/threadFlows/0/locations/8)
#  769|   		ldns_rr_list_deep_free(key_list);
#  770|   		key_list = NULL;
#  771|-> 		ldns_rr_list_deep_free(key_sig_list);
#  772|   		key_sig_list = NULL;
#  773|   		ds_list = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def310]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:774:17: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:267:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:282:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:423:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:503:20: branch_false: following 'false' branch (when 'i == 1')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:661:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:663:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:774:17: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/104/codeFlows/0/threadFlows/0/locations/8)
#  772|   		key_sig_list = NULL;
#  773|   		ds_list = NULL;
#  774|-> 		ldns_rr_list_deep_free(ds_sig_list);
#  775|   		ds_sig_list = NULL;
#  776|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:786:9: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:260:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:786:9: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/105/codeFlows/0/threadFlows/0/locations/8)
#  784|   
#  785|   	done:
#  786|-> 	ldns_rr_list_deep_free(trusted_ds_rrs);
#  787|   	ldns_rr_list_deep_free(correct_key_list);
#  788|   	ldns_resolver_deep_free(res);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:787:9: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:260:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:787:9: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/106/codeFlows/0/threadFlows/0/locations/8)
#  785|   	done:
#  786|   	ldns_rr_list_deep_free(trusted_ds_rrs);
#  787|-> 	ldns_rr_list_deep_free(correct_key_list);
#  788|   	ldns_resolver_deep_free(res);
#  789|   	if (labels) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:788:9: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:260:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:788:9: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/107/codeFlows/0/threadFlows/0/locations/8)
#  786|   	ldns_rr_list_deep_free(trusted_ds_rrs);
#  787|   	ldns_rr_list_deep_free(correct_key_list);
#  788|-> 	ldns_resolver_deep_free(res);
#  789|   	if (labels) {
#  790|   		for(i = 0 ; i < (ssize_t)labels_count + 2; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:791:25: warning[-Wanalyzer-malloc-leak]: leak of 'labels'
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:175:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:181:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:182:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:188:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:189:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:225:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:231:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:244:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:245:12: branch_false: following 'false' branch (when 'labels' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:248:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:257:44: branch_true: following 'true' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:258:66: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:259:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:260:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:789:12: branch_true: following 'true' branch (when 'labels' is non-NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:790:29: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:791:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/securetrace.c:791:25: danger: 'labels' leaks here; was allocated at [(9)](sarif:/runs/0/results/108/codeFlows/0/threadFlows/0/locations/8)
#  789|   	if (labels) {
#  790|   		for(i = 0 ; i < (ssize_t)labels_count + 2; i++) {
#  791|-> 			ldns_rdf_deep_free(labels[i]);
#  792|   		}
#  793|   		LDNS_FREE(labels);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def315]
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:96:13: warning[-Wanalyzer-file-leak]: leak of FILE 'fp'
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:170:1: enter_function: entry to 'read_hex_buffer'
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:179:20: call_function: calling 'packetbuffromfile' from 'read_hex_buffer'
#   94|   	/*verbose("Opened %s\n", filename);*/
#   95|   	
#   96|-> 	c = fgetc(fp);
#   97|   	while (c != EOF && hexbufpos < LDNS_MAX_PACKETLEN) {
#   98|   		if (state < 2 && !isascii(c)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:96:13: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:170:1: enter_function: entry to 'read_hex_buffer'
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:179:20: call_function: calling 'packetbuffromfile' from 'read_hex_buffer'
#   94|   	/*verbose("Opened %s\n", filename);*/
#   95|   	
#   96|-> 	c = fgetc(fp);
#   97|   	while (c != EOF && hexbufpos < LDNS_MAX_PACKETLEN) {
#   98|   		if (state < 2 && !isascii(c)) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def317]
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:126:21: warning[-Wanalyzer-file-leak]: leak of FILE 'fp'
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:170:1: enter_function: entry to 'read_hex_buffer'
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:179:20: call_function: calling 'packetbuffromfile' from 'read_hex_buffer'
#  124|   				break;
#  125|   		}
#  126|-> 		c = fgetc(fp);
#  127|   	}
#  128|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:126:21: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:170:1: enter_function: entry to 'read_hex_buffer'
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:179:20: call_function: calling 'packetbuffromfile' from 'read_hex_buffer'
#  124|   				break;
#  125|   		}
#  126|-> 		c = fgetc(fp);
#  127|   	}
#  128|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def319]
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:165:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fp'
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:190:1: enter_function: entry to 'read_hex_pkt'
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:201:20: call_function: calling 'packetbuffromfile' from 'read_hex_pkt'
#  163|   		fclose(fp);
#  164|   	}
#  165|-> 	xfree(hexbuf);
#  166|   	return wirelen;
#  167|   }	

Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:165:9: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:190:1: enter_function: entry to 'read_hex_pkt'
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:201:20: call_function: calling 'packetbuffromfile' from 'read_hex_pkt'
#  163|   		fclose(fp);
#  164|   	}
#  165|-> 	xfree(hexbuf);
#  166|   	return wirelen;
#  167|   }	

Error: GCC_ANALYZER_WARNING (CWE-775): [#def321]
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:233:18: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "w")'
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:226:14: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:228:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:233:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:233:18: danger: 'fopen(filename, "w")' leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  231|   	}
#  232|   	
#  233|-> 	status = ldns_pkt2wire(&wire, pkt, &size);
#  234|   	
#  235|   	if (status != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:233:18: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "w")'
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:226:14: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:228:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:233:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:233:18: danger: 'fopen(filename, "w")' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  231|   	}
#  232|   	
#  233|-> 	status = ldns_pkt2wire(&wire, pkt, &size);
#  234|   	
#  235|   	if (status != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def323]
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:236:17: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "w")'
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:226:14: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:228:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:233:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:235:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:236:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:236:17: danger: 'fopen(filename, "w")' leaks here; was opened at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  234|   	
#  235|   	if (status != LDNS_STATUS_OK) {
#  236|-> 		error("Unable to convert packet: error code %u", status);
#  237|   		LDNS_FREE(wire);
#  238|   		fclose(fp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:236:17: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "w")'
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:226:14: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:228:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:233:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:235:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:236:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/drill/work.c:236:17: danger: 'fopen(filename, "w")' leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  234|   	
#  235|   	if (status != LDNS_STATUS_OK) {
#  236|-> 		error("Unable to convert packet: error code %u", status);
#  237|   		LDNS_FREE(wire);
#  238|   		fclose(fp);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def325]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:132:13: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(fn1, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:120:12: branch_false: following 'false' branch (when 'argc == 2')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:125:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:126:15: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:127:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:132:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:132:13: danger: 'fopen(fn1, "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  130|   	}
#  131|   	/* Read first zone */
#  132|-> 	s = ldns_zone_new_frm_fp_l(&z1, fp1, NULL, 0, 
#  133|   						  LDNS_RR_CLASS_IN, &line_nr1);
#  134|   	if (s != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:132:13: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(fn1, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:120:12: branch_false: following 'false' branch (when 'argc == 2')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:125:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:126:15: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:127:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:132:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:132:13: danger: 'fopen(fn1, "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  130|   	}
#  131|   	/* Read first zone */
#  132|-> 	s = ldns_zone_new_frm_fp_l(&z1, fp1, NULL, 0, 
#  133|   						  LDNS_RR_CLASS_IN, &line_nr1);
#  134|   	if (s != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def327]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:151:13: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(fn2, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:120:12: branch_false: following 'false' branch (when 'argc == 2')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:125:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:127:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:132:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:134:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:142:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:145:15: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:146:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:151:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:151:13: danger: 'fopen(fn2, "r")' leaks here; was opened at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  149|   	}
#  150|   	/* Read second zone */
#  151|-> 	s = ldns_zone_new_frm_fp_l(&z2, fp2, NULL, 0,
#  152|   						  LDNS_RR_CLASS_IN, &line_nr2);
#  153|   	if (s != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:151:13: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(fn2, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:120:12: branch_false: following 'false' branch (when 'argc == 2')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:125:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:127:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:132:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:134:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:142:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:145:15: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:146:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:151:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-compare-zones.c:151:13: danger: 'fopen(fn2, "r")' leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
#  149|   	}
#  150|   	/* Read second zone */
#  151|-> 	s = ldns_zone_new_frm_fp_l(&z2, fp2, NULL, 0,
#  152|   						  LDNS_RR_CLASS_IN, &line_nr2);
#  153|   	if (s != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def329]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dane.c:566:26: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dane.c:1168:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dane.c:1252:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dane.c:1255:15: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dane.c:1256:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dane.c:1329:29: call_function: calling 'read_key_file' from 'main'
#  564|   	}
#  565|   	while (!feof(fp)) {
#  566|-> 		status = ldns_rr_new_frm_fp_l(&rr, fp, &my_ttl, &my_origin,
#  567|   				&my_prev, &line_nr);
#  568|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dane.c:566:26: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dane.c:1168:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dane.c:1252:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dane.c:1255:15: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dane.c:1256:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dane.c:1329:29: call_function: calling 'read_key_file' from 'main'
#  564|   	}
#  565|   	while (!feof(fp)) {
#  566|-> 		status = ldns_rr_new_frm_fp_l(&rr, fp, &my_ttl, &my_origin,
#  567|   				&my_prev, &line_nr);
#  568|   

Error: CPPCHECK_WARNING (CWE-476): [#def331]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:387: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tmp2
#  385|   						}
#  386|   					}
#  387|-> 					tmp2[pos] = '\0';
#  388|   					fprintf(output, "%s", tmp2);
#  389|   					free(tmp2);

Error: CPPCHECK_WARNING (CWE-476): [#def332]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:388: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tmp2
#  386|   					}
#  387|   					tmp2[pos] = '\0';
#  388|-> 					fprintf(output, "%s", tmp2);
#  389|   					free(tmp2);
#  390|   					break;

Error: CPPCHECK_WARNING (CWE-476): [#def333]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:989: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valuedup
#  987|   		valuedup = strdup(value);
#  988|   		mvaluedup = strdup(mvalue);
#  989|-> 		for (i = 0; i < strlen(valuedup); i++) {
#  990|   			valuedup[i] = tolower((unsigned char)valuedup[i]);
#  991|   		}

Error: CPPCHECK_WARNING (CWE-476): [#def334]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:992: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mvaluedup
#  990|   			valuedup[i] = tolower((unsigned char)valuedup[i]);
#  991|   		}
#  992|-> 		for (i = 0; i < strlen(mvaluedup); i++) {
#  993|   			mvaluedup[i] = tolower((unsigned char)mvaluedup[i]);
#  994|   		}

Error: CPPCHECK_WARNING (CWE-476): [#def335]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1178: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: val
# 1176|   
# 1177|   	val = malloc(valsize);
# 1178|-> 	memset(val, 0, valsize);
# 1179|   
# 1180|   	switch(id) {

Error: CPPCHECK_WARNING (CWE-476): [#def336]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1445: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new
# 1443|   				} else {
# 1444|   					new = malloc(sizeof(match_counters));
# 1445|-> 					new->left = NULL;
# 1446|   					new->right = NULL;
# 1447|   					new->match = expr;

Error: CPPCHECK_WARNING (CWE-476): [#def337]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1446: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new
# 1444|   					new = malloc(sizeof(match_counters));
# 1445|   					new->left = NULL;
# 1446|-> 					new->right = NULL;
# 1447|   					new->match = expr;
# 1448|   					counters->left = new;

Error: CPPCHECK_WARNING (CWE-476): [#def338]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1447: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new
# 1445|   					new->left = NULL;
# 1446|   					new->right = NULL;
# 1447|-> 					new->match = expr;
# 1448|   					counters->left = new;
# 1449|   					return 0;

Error: CPPCHECK_WARNING (CWE-476): [#def339]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1458: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new
# 1456|   				} else {
# 1457|   					new = malloc(sizeof(match_counters));
# 1458|-> 					new->left = NULL;
# 1459|   					new->right = NULL;
# 1460|   					new->match = expr;

Error: CPPCHECK_WARNING (CWE-476): [#def340]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1459: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new
# 1457|   					new = malloc(sizeof(match_counters));
# 1458|   					new->left = NULL;
# 1459|-> 					new->right = NULL;
# 1460|   					new->match = expr;
# 1461|   					counters->right = new;

Error: CPPCHECK_WARNING (CWE-476): [#def341]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1460: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new
# 1458|   					new->left = NULL;
# 1459|   					new->right = NULL;
# 1460|-> 					new->match = expr;
# 1461|   					counters->right = new;
# 1462|   					return 0;

Error: CPPCHECK_WARNING (CWE-476): [#def342]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1594: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mo
# 1592|   	for (i = 0; i < unique_id_count; i++) {
# 1593|   		mo = malloc(sizeof(match_operation));
# 1594|-> 		mo->id = unique_ids[i];
# 1595|   		mo->operator = OP_EQUAL;
# 1596|   		mo->value = get_string_value(mo->id, pkt, src_addr, dst_addr);

Error: CPPCHECK_WARNING (CWE-476): [#def343]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1595: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mo
# 1593|   		mo = malloc(sizeof(match_operation));
# 1594|   		mo->id = unique_ids[i];
# 1595|-> 		mo->operator = OP_EQUAL;
# 1596|   		mo->value = get_string_value(mo->id, pkt, src_addr, dst_addr);
# 1597|   

Error: CPPCHECK_WARNING (CWE-476): [#def344]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1596: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mo
# 1594|   		mo->id = unique_ids[i];
# 1595|   		mo->operator = OP_EQUAL;
# 1596|-> 		mo->value = get_string_value(mo->id, pkt, src_addr, dst_addr);
# 1597|   
# 1598|   		me = malloc(sizeof(match_expression));

Error: CPPCHECK_WARNING (CWE-476): [#def345]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1599: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
# 1597|   
# 1598|   		me = malloc(sizeof(match_expression));
# 1599|-> 		me->op = MATCH_EXPR_LEAF;
# 1600|   		me->left = NULL;
# 1601|   		me->right = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def346]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1600: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
# 1598|   		me = malloc(sizeof(match_expression));
# 1599|   		me->op = MATCH_EXPR_LEAF;
# 1600|-> 		me->left = NULL;
# 1601|   		me->right = NULL;
# 1602|   		me->match = mo;

Error: CPPCHECK_WARNING (CWE-476): [#def347]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1601: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
# 1599|   		me->op = MATCH_EXPR_LEAF;
# 1600|   		me->left = NULL;
# 1601|-> 		me->right = NULL;
# 1602|   		me->match = mo;
# 1603|   		me->count = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def348]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1602: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
# 1600|   		me->left = NULL;
# 1601|   		me->right = NULL;
# 1602|-> 		me->match = mo;
# 1603|   		me->count = 1;
# 1604|   

Error: CPPCHECK_WARNING (CWE-476): [#def349]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1603: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
# 1601|   		me->right = NULL;
# 1602|   		me->match = mo;
# 1603|-> 		me->count = 1;
# 1604|   
# 1605|   		add_result = add_match_counter(uniques, me, true);

Error: CPPCHECK_WARNING (CWE-476): [#def350]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1661: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: string
# 1659|   
# 1660|   	/* remove whitespace */
# 1661|-> 	char *str = calloc(1, strlen(string) + 1);
# 1662|   
# 1663|   	j = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def351]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1664: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: string
# 1662|   
# 1663|   	j = 0;
# 1664|-> 	for (i = 0; i < strlen(string); i++) {
# 1665|   		if(!isspace((unsigned char)string[i])) {
# 1666|   			str[j] = string[i];

Error: CPPCHECK_WARNING (CWE-476): [#def352]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1665: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: string
# 1663|   	j = 0;
# 1664|   	for (i = 0; i < strlen(string); i++) {
# 1665|-> 		if(!isspace((unsigned char)string[i])) {
# 1666|   			str[j] = string[i];
# 1667|   			j++;

Error: CPPCHECK_WARNING (CWE-476): [#def353]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1673: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: expr
# 1671|   	
# 1672|   	expr = malloc(sizeof(match_expression));
# 1673|-> 	expr->left = NULL;
# 1674|   	expr->right = NULL;
# 1675|   	expr->match = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def354]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1674: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: expr
# 1672|   	expr = malloc(sizeof(match_expression));
# 1673|   	expr->left = NULL;
# 1674|-> 	expr->right = NULL;
# 1675|   	expr->match = NULL;
# 1676|   	expr->count = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def355]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1675: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: expr
# 1673|   	expr->left = NULL;
# 1674|   	expr->right = NULL;
# 1675|-> 	expr->match = NULL;
# 1676|   	expr->count = 0;
# 1677|   	leftstart = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def356]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1676: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: expr
# 1674|   	expr->right = NULL;
# 1675|   	expr->match = NULL;
# 1676|-> 	expr->count = 0;
# 1677|   	leftstart = 0;
# 1678|   	for (i = 0; i < strlen(str); i++) {

Error: CPPCHECK_WARNING (CWE-476): [#def357]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1683: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: left_str
# 1681|   			if (!expr->left) {
# 1682|   				left_str = malloc(leftend - leftstart + 2);
# 1683|-> 				strncpy(left_str, &str[leftstart], leftend-leftstart+1);
# 1684|   				left_str[leftend - leftstart + 1] = '\0';
# 1685|   				expr->left = parse_match_expression(left_str);

Error: CPPCHECK_WARNING (CWE-476): [#def358]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1684: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: left_str
# 1682|   				left_str = malloc(leftend - leftstart + 2);
# 1683|   				strncpy(left_str, &str[leftstart], leftend-leftstart+1);
# 1684|-> 				left_str[leftend - leftstart + 1] = '\0';
# 1685|   				expr->left = parse_match_expression(left_str);
# 1686|   				free(left_str);

Error: CPPCHECK_WARNING (CWE-476): [#def359]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1700: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: left_str
# 1698|   			if (!expr->left) {
# 1699|   				left_str = malloc(leftend - leftstart + 2);
# 1700|-> 				strncpy(left_str, &str[leftstart], leftend-leftstart+1);
# 1701|   				left_str[leftend - leftstart + 1] = '\0';
# 1702|   				expr->left = parse_match_expression(left_str);

Error: CPPCHECK_WARNING (CWE-476): [#def360]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1701: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: left_str
# 1699|   				left_str = malloc(leftend - leftstart + 2);
# 1700|   				strncpy(left_str, &str[leftstart], leftend-leftstart+1);
# 1701|-> 				left_str[leftend - leftstart + 1] = '\0';
# 1702|   				expr->left = parse_match_expression(left_str);
# 1703|   				free(left_str);

Error: CPPCHECK_WARNING (CWE-476): [#def361]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1738: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: left_str
# 1736|   			leftend = i-1;
# 1737|   			left_str = malloc(leftend - leftstart + 1);
# 1738|-> 			strncpy(left_str, &str[leftstart], leftend - leftstart + 1);
# 1739|   			expr->left = parse_match_expression(left_str);
# 1740|   			free(left_str);

Error: CPPCHECK_WARNING (CWE-476): [#def362]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1767: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: op
# 1765|   			op = malloc(3);
# 1766|   			j = 0;
# 1767|-> 			op[j] = str[i];
# 1768|   			i++;
# 1769|   			j++;

Error: CPPCHECK_WARNING (CWE-476): [#def363]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1795: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: left_str
# 1793|   			op[j] = '\0';
# 1794|   			left_str = malloc(leftend - leftstart + 2);
# 1795|-> 			strncpy(left_str, &str[leftstart], leftend - leftstart + 1);
# 1796|   			left_str[leftend - leftstart + 1] = '\0';
# 1797|   			mt = get_match_by_name(left_str);

Error: CPPCHECK_WARNING (CWE-476): [#def364]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1796: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: left_str
# 1794|   			left_str = malloc(leftend - leftstart + 2);
# 1795|   			strncpy(left_str, &str[leftstart], leftend - leftstart + 1);
# 1796|-> 			left_str[leftend - leftstart + 1] = '\0';
# 1797|   			mt = get_match_by_name(left_str);
# 1798|   			if (!mt) {

Error: CPPCHECK_WARNING (CWE-476): [#def365]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1812: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mo
# 1810|   							free(mo);
# 1811|   						mo = malloc(sizeof(match_operation));
# 1812|-> 						mo->id = mt->id;
# 1813|   						mo->operator = get_op_id(op);
# 1814|   						switch (mt->type) {

Error: CPPCHECK_WARNING (CWE-476): [#def366]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1813: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mo
# 1811|   						mo = malloc(sizeof(match_operation));
# 1812|   						mo->id = mt->id;
# 1813|-> 						mo->operator = get_op_id(op);
# 1814|   						switch (mt->type) {
# 1815|   							case TYPE_BOOL:

Error: CPPCHECK_WARNING (CWE-476): [#def367]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1860: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: val
# 1858|   								if (lt) {
# 1859|   									val = malloc(4);
# 1860|-> 									snprintf(val, 3, "%u", (unsigned int) lt->id);
# 1861|   								} else {
# 1862|   									val = strdup(&str[i]);

Error: CPPCHECK_WARNING (CWE-476): [#def368]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:1869: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: val
# 1867|   								if (lt) {
# 1868|   									val = malloc(4);
# 1869|-> 									snprintf(val, 3, "%u", (unsigned int) lt->id);
# 1870|   								} else {
# 1871|   									val = strdup(&str[i]);

Error: CPPCHECK_WARNING (CWE-476): [#def369]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:2473: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: substring
# 2471|   			} else {
# 2472|   				substring = malloc(strlen(string)+1);
# 2473|-> 				strncpy(substring, &string[lastpos], i - lastpos + 1);
# 2474|   				substring[i - lastpos] = '\0';
# 2475|   				expr = parse_match_expression(substring);

Error: CPPCHECK_WARNING (CWE-476): [#def370]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:2474: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: substring
# 2472|   				substring = malloc(strlen(string)+1);
# 2473|   				strncpy(substring, &string[lastpos], i - lastpos + 1);
# 2474|-> 				substring[i - lastpos] = '\0';
# 2475|   				expr = parse_match_expression(substring);
# 2476|   				free(substring);

Error: CPPCHECK_WARNING (CWE-476): [#def371]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:2492: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: substring
# 2490|   	}
# 2491|   	substring = malloc(strlen(string) + 1);
# 2492|-> 	strncpy(substring, &string[lastpos], i - lastpos + 1);
# 2493|   	substring[i - lastpos] = '\0';
# 2494|   	expr = parse_match_expression(substring);

Error: CPPCHECK_WARNING (CWE-476): [#def372]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:2493: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: substring
# 2491|   	substring = malloc(strlen(string) + 1);
# 2492|   	strncpy(substring, &string[lastpos], i - lastpos + 1);
# 2493|-> 	substring[i - lastpos] = '\0';
# 2494|   	expr = parse_match_expression(substring);
# 2495|   

Error: CPPCHECK_WARNING (CWE-476): [#def373]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:2554: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: strpart
# 2552|   	if (i > lastpos) {
# 2553|   		strpart = malloc(i - lastpos + 1);
# 2554|-> 		strncpy(strpart, &str[lastpos], i - lastpos);
# 2555|   		strpart[i - lastpos] = '\0';
# 2556|   		if ((mt = get_match_by_name(strpart))) {

Error: CPPCHECK_WARNING (CWE-476): [#def374]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:2555: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: strpart
# 2553|   		strpart = malloc(i - lastpos + 1);
# 2554|   		strncpy(strpart, &str[lastpos], i - lastpos);
# 2555|-> 		strpart[i - lastpos] = '\0';
# 2556|   		if ((mt = get_match_by_name(strpart))) {
# 2557|   			ids[*count] = mt->id;

Error: CPPCHECK_WARNING (CWE-476): [#def375]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:2593: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: count
# 2591|   	int unique_minimum = 0;
# 2592|   
# 2593|-> 	count->left = NULL;
# 2594|   	count->match = NULL;
# 2595|   	count->right = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def376]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:2594: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: count
# 2592|   
# 2593|   	count->left = NULL;
# 2594|-> 	count->match = NULL;
# 2595|   	count->right = NULL;
# 2596|   	uniques->left = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def377]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:2595: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: count
# 2593|   	count->left = NULL;
# 2594|   	count->match = NULL;
# 2595|-> 	count->right = NULL;
# 2596|   	uniques->left = NULL;
# 2597|   	uniques->match = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def378]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:2596: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: uniques
# 2594|   	count->match = NULL;
# 2595|   	count->right = NULL;
# 2596|-> 	uniques->left = NULL;
# 2597|   	uniques->match = NULL;
# 2598|   	uniques->right = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def379]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:2597: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: uniques
# 2595|   	count->right = NULL;
# 2596|   	uniques->left = NULL;
# 2597|-> 	uniques->match = NULL;
# 2598|   	uniques->right = NULL;
# 2599|   

Error: CPPCHECK_WARNING (CWE-476): [#def380]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:2598: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: uniques
# 2596|   	uniques->left = NULL;
# 2597|   	uniques->match = NULL;
# 2598|-> 	uniques->right = NULL;
# 2599|   
# 2600|   	fragment_p = malloc(sizeof(struct fragment_part));

Error: CPPCHECK_WARNING (CWE-476): [#def381]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:2601: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fragment_p
# 2599|   
# 2600|   	fragment_p = malloc(sizeof(struct fragment_part));
# 2601|-> 	fragment_p->ip_id = 0;
# 2602|   	fragment_p->cur_len = 0;
# 2603|   

Error: CPPCHECK_WARNING (CWE-476): [#def382]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-dpa.c:2602: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fragment_p
# 2600|   	fragment_p = malloc(sizeof(struct fragment_part));
# 2601|   	fragment_p->ip_id = 0;
# 2602|-> 	fragment_p->cur_len = 0;
# 2603|   
# 2604|   	for (i = 1; i < argc; i++) {

Error: CPPCHECK_WARNING (CWE-476): [#def383]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:139: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: keyname
#  137|   	keyname = strdup(argv[0]);
#  138|   
#  139|-> 	keyfp = fopen(keyname, "r");
#  140|   	if (!keyfp) {
#  141|   		fprintf(stderr, "Failed to open public key file %s: %s\n", keyname,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def384]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:147:26: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(keyname, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:99:16: branch_true: following 'true' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:99:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:133:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:137:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:139:17: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:140:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:147:26: danger: 'fopen(keyname, "r")' leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  145|   
#  146|   	while (result == LDNS_STATUS_OK) {
#  147|-> 		result = ldns_rr_new_frm_fp(&k, keyfp, 0, &origin, NULL);
#  148|   		while (result == LDNS_STATUS_SYNTAX_ORIGIN ||
#  149|   			result == LDNS_STATUS_SYNTAX_TTL ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def385]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:147:26: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(keyname, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:99:16: branch_true: following 'true' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:99:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:133:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:137:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:139:17: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:140:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:147:26: danger: 'fopen(keyname, "r")' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  145|   
#  146|   	while (result == LDNS_STATUS_OK) {
#  147|-> 		result = ldns_rr_new_frm_fp(&k, keyfp, 0, &origin, NULL);
#  148|   		while (result == LDNS_STATUS_SYNTAX_ORIGIN ||
#  149|   			result == LDNS_STATUS_SYNTAX_TTL ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def386]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:147:26: warning[-Wanalyzer-malloc-leak]: leak of 'keyname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:99:16: branch_true: following 'true' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:99:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:133:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:137:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:137:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:140:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:147:26: danger: 'keyname' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  145|   
#  146|   	while (result == LDNS_STATUS_OK) {
#  147|-> 		result = ldns_rr_new_frm_fp(&k, keyfp, 0, &origin, NULL);
#  148|   		while (result == LDNS_STATUS_SYNTAX_ORIGIN ||
#  149|   			result == LDNS_STATUS_SYNTAX_TTL ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def387]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:155:34: warning[-Wanalyzer-malloc-leak]: leak of 'keyname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:99:16: branch_true: following 'true' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:99:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:133:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:137:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:137:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:140:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:155:34: danger: 'keyname' leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  153|   				ldns_rr_free(k);
#  154|   			}
#  155|-> 			result = ldns_rr_new_frm_fp(&k, keyfp, 0, &origin, NULL);
#  156|   		}
#  157|   		if (result == LDNS_STATUS_SYNTAX_EMPTY) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def388]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:162:25: warning[-Wanalyzer-malloc-leak]: leak of 'keyname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:99:16: branch_true: following 'true' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:99:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:133:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:137:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:137:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:140:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:148:24: branch_false: following 'false' branch (when 'result != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:157:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:157:20: branch_false: following 'false' branch (when 'result != 65')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:161:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:162:25: danger: 'keyname' leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  160|   		}
#  161|   		if (result != LDNS_STATUS_OK) {
#  162|-> 			fprintf(stderr, "Could not read public key from file %s: %s\n", keyname, ldns_get_errorstr_by_id(result));
#  163|   			exit(EXIT_FAILURE);
#  164|   		}

Error: CPPCHECK_WARNING (CWE-476): [#def389]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-key2ds.c:181: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dsname
#  179|   		/* print the public key RR to .key */
#  180|   		dsname = LDNS_XMALLOC(char, strlen(owner) + 16);
#  181|-> 		snprintf(dsname, strlen(owner) + 15, "K%s+%03u+%05u.ds", owner, alg, (unsigned int) ldns_calc_keytag(k));
#  182|   
#  183|   		if (nofile)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def390]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:22: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:22: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  424|   
#  425|   	pop = NULL;
#  426|-> 	while((pop = ldns_resolver_pop_nameserver(res))) { 
#  427|   		last_nameservers[last_nameserver_count] = pop;
#  428|   		last_nameserver_count++;

Error: CPPCHECK_WARNING (CWE-476): [#def391]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: last_nameservers
#  425|   	pop = NULL;
#  426|   	while((pop = ldns_resolver_pop_nameserver(res))) { 
#  427|-> 		last_nameservers[last_nameserver_count] = pop;
#  428|   		last_nameserver_count++;
#  429|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def392]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: this call could return NULL
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:17: danger: 'last_nameservers + last_nameserver_count * 8' could be NULL: unchecked value from [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#  425|   	pop = NULL;
#  426|   	while((pop = ldns_resolver_pop_nameserver(res))) { 
#  427|-> 		last_nameservers[last_nameserver_count] = pop;
#  428|   		last_nameserver_count++;
#  429|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def393]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:433:30: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:433:30: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  431|   	for (nss_i = 0; nss_i < last_nameserver_count; nss_i++) {
#  432|   		/* remove previous nameserver */
#  433|-> 		while((pop = ldns_resolver_pop_nameserver(res))) { ldns_rdf_deep_free(pop); }
#  434|   
#  435|   		if (verbosity >= 1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def394]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:433:68: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:433:23: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:433:68: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:433:68: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
#  431|   	for (nss_i = 0; nss_i < last_nameserver_count; nss_i++) {
#  432|   		/* remove previous nameserver */
#  433|-> 		while((pop = ldns_resolver_pop_nameserver(res))) { ldns_rdf_deep_free(pop); }
#  434|   
#  435|   		if (verbosity >= 1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def395]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:437:25: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:435:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:436:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:437:25: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
#  435|   		if (verbosity >= 1) {
#  436|   			printf("Querying nameserver: ");
#  437|-> 			ldns_rdf_print(stdout, last_nameservers[nss_i]);
#  438|   			printf("\n");
#  439|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def396]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:440:26: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:440:26: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
#  438|   			printf("\n");
#  439|   		}
#  440|-> 		status = ldns_resolver_push_nameserver(res, last_nameservers[nss_i]);
#  441|   		if (status != LDNS_STATUS_OK) {
#  442|   			fprintf(stderr, "Error adding nameserver to resolver: %s\n", ldns_get_errorstr_by_id(status));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def397]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:442:25: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:441:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:442:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:442:25: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#  440|   		status = ldns_resolver_push_nameserver(res, last_nameservers[nss_i]);
#  441|   		if (status != LDNS_STATUS_OK) {
#  442|-> 			fprintf(stderr, "Error adding nameserver to resolver: %s\n", ldns_get_errorstr_by_id(status));
#  443|   		}
#  444|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def398]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:445:17: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:445:17: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
#  443|   		}
#  444|   
#  445|-> 		ldns_pkt_free(p);
#  446|   		status = ldns_resolver_send(&p, res, name, t, c, 0);
#  447|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def399]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:446:26: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:446:26: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
#  444|   
#  445|   		ldns_pkt_free(p);
#  446|-> 		status = ldns_resolver_send(&p, res, name, t, c, 0);
#  447|   
#  448|   		if (!p) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def400]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:456:25: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:456:25: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
#  454|   		if (status == LDNS_STATUS_RES_NO_NS) {
#  455|   			fprintf(stderr, "Error: nameserver at ");
#  456|-> 			ldns_rdf_print(stderr, last_nameservers[nss_i]);
#  457|   			fprintf(stderr, " not responding. Unable to check RRset here, aborting.\n");
#  458|   			LDNS_FREE(last_nameservers);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
#  460|   		}
#  461|   
#  462|-> 		if (ldns_pkt_get_rcode(p) != LDNS_RCODE_NOERROR) {
#  463|   			printf("Error in packet:\n");
#  464|   			ldns_pkt_print(stdout, p);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:464:25: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:464:25: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
#  462|   		if (ldns_pkt_get_rcode(p) != LDNS_RCODE_NOERROR) {
#  463|   			printf("Error in packet:\n");
#  464|-> 			ldns_pkt_print(stdout, p);
#  465|   			LDNS_FREE(last_nameservers);
#  466|   			return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:473:25: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: following 'false' branch (when 'answer_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:486:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_true: following 'true' branch (when 'answer_list' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:470:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:473:25: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
#  471|   				printf("1Comparing answer rr list of answer to previous\n");
#  472|   			}
#  473|-> 			ldns_rr_list_sort(ldns_pkt_answer(p));
#  474|   			ldns_rr_list_sort(answer_list);
#  475|   			if (ldns_rr_list_compare(answer_list, ldns_pkt_answer(p)) != 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:474:25: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: following 'false' branch (when 'answer_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:486:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_true: following 'true' branch (when 'answer_list' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:470:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:474:25: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
#  472|   			}
#  473|   			ldns_rr_list_sort(ldns_pkt_answer(p));
#  474|-> 			ldns_rr_list_sort(answer_list);
#  475|   			if (ldns_rr_list_compare(answer_list, ldns_pkt_answer(p)) != 0) {
#  476|   				printf("ERROR: different answer section in response from nameserver\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:475:29: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: following 'false' branch (when 'answer_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:486:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_true: following 'true' branch (when 'answer_list' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:470:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:475:29: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
#  473|   			ldns_rr_list_sort(ldns_pkt_answer(p));
#  474|   			ldns_rr_list_sort(answer_list);
#  475|-> 			if (ldns_rr_list_compare(answer_list, ldns_pkt_answer(p)) != 0) {
#  476|   				printf("ERROR: different answer section in response from nameserver\n");
#  477|   				fprintf(stderr, "\nI had:\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:475:63: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: following 'false' branch (when 'answer_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:486:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_true: following 'true' branch (when 'answer_list' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:470:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:475:63: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
#  473|   			ldns_rr_list_sort(ldns_pkt_answer(p));
#  474|   			ldns_rr_list_sort(answer_list);
#  475|-> 			if (ldns_rr_list_compare(answer_list, ldns_pkt_answer(p)) != 0) {
#  476|   				printf("ERROR: different answer section in response from nameserver\n");
#  477|   				fprintf(stderr, "\nI had:\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:478:33: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: following 'false' branch (when 'answer_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:486:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_true: following 'true' branch (when 'answer_list' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:470:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:475:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:476:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:478:33: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/8)
#  476|   				printf("ERROR: different answer section in response from nameserver\n");
#  477|   				fprintf(stderr, "\nI had:\n");
#  478|-> 				ldns_rr_list_print(stderr, answer_list);
#  479|   				fprintf(stderr, "\nI received (from nameserver at ");
#  480|   				ldns_rdf_print(stderr, ldns_resolver_nameservers(res)[0]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:480:33: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: following 'false' branch (when 'answer_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:486:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_true: following 'true' branch (when 'answer_list' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:470:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:475:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:476:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:480:33: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/8)
#  478|   				ldns_rr_list_print(stderr, answer_list);
#  479|   				fprintf(stderr, "\nI received (from nameserver at ");
#  480|-> 				ldns_rdf_print(stderr, ldns_resolver_nameservers(res)[0]);
#  481|   				fprintf(stderr, "):\n");
#  482|   				ldns_rr_list_print(stderr, ldns_pkt_answer(p));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def409]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:480:86: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: following 'false' branch (when 'answer_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:486:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_true: following 'true' branch (when 'answer_list' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:470:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:475:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:476:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:480:86: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/8)
#  478|   				ldns_rr_list_print(stderr, answer_list);
#  479|   				fprintf(stderr, "\nI received (from nameserver at ");
#  480|-> 				ldns_rdf_print(stderr, ldns_resolver_nameservers(res)[0]);
#  481|   				fprintf(stderr, "):\n");
#  482|   				ldns_rr_list_print(stderr, ldns_pkt_answer(p));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def410]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:482:33: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: following 'false' branch (when 'answer_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:486:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_true: following 'true' branch (when 'answer_list' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:470:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:475:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:476:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:482:33: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/8)
#  480|   				ldns_rdf_print(stderr, ldns_resolver_nameservers(res)[0]);
#  481|   				fprintf(stderr, "):\n");
#  482|-> 				ldns_rr_list_print(stderr, ldns_pkt_answer(p));
#  483|   				exit(EXIT_FAILURE);
#  484|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:482:60: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: following 'false' branch (when 'answer_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:486:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_true: following 'true' branch (when 'answer_list' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:470:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:475:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:476:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:482:60: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/8)
#  480|   				ldns_rdf_print(stderr, ldns_resolver_nameservers(res)[0]);
#  481|   				fprintf(stderr, "):\n");
#  482|-> 				ldns_rr_list_print(stderr, ldns_pkt_answer(p));
#  483|   				exit(EXIT_FAILURE);
#  484|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def412]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:489:39: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: following 'false' branch (when 'answer_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:486:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:489:39: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/8)
#  487|   				printf("First answer rr list for this set, nothing to compare with\n");
#  488|   			}
#  489|-> 			answer_list = ldns_rr_list_clone(ldns_pkt_answer(p));
#  490|   			if (verbosity >= 3) {
#  491|   				printf("DNSKEY RRset:\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def413]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:489:58: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: following 'false' branch (when 'answer_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:486:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:489:58: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/8)
#  487|   				printf("First answer rr list for this set, nothing to compare with\n");
#  488|   			}
#  489|-> 			answer_list = ldns_rr_list_clone(ldns_pkt_answer(p));
#  490|   			if (verbosity >= 3) {
#  491|   				printf("DNSKEY RRset:\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def414]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:492:33: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: following 'false' branch (when 'answer_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:486:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:490:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:491:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:492:33: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/8)
#  490|   			if (verbosity >= 3) {
#  491|   				printf("DNSKEY RRset:\n");
#  492|-> 				ldns_rr_list_print(stdout, answer_list);
#  493|   			}
#  494|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def415]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:499:17: warning[-Wanalyzer-malloc-leak]: leak of 'last_nameservers'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:65:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:70:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:96:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:101:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:103:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:108:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:114:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:423:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:426:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:427:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:431:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:448:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:454:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:462:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:469:20: branch_false: following 'false' branch (when 'answer_list' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:486:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:498:25: branch_true: following 'true' branch (when 'nss_i < last_nameserver_count')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:499:52: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:499:17: danger: 'last_nameservers' leaks here; was allocated at [(9)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/8)
#  497|   
#  498|   	for (nss_i = 0; nss_i < last_nameserver_count; nss_i++) {
#  499|-> 		ldns_rdf_deep_free(last_nameservers[nss_i]);
#  500|   	}
#  501|   	LDNS_FREE(last_nameservers);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def416]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:530:18: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:524:14: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:525:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:530:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:530:18: danger: 'fopen(filename, "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
#  528|   	}
#  529|   
#  530|-> 	status = ldns_zone_new_frm_fp_l(&z, fp, NULL, 0, 0, &line_nr);
#  531|   	fclose(fp);
#  532|   	if (status != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def417]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:530:18: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:524:14: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:525:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:530:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keyfetcher.c:530:18: danger: 'fopen(filename, "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
#  528|   	}
#  529|   
#  530|-> 	status = ldns_zone_new_frm_fp_l(&z, fp, NULL, 0, 0, &line_nr);
#  531|   	fclose(fp);
#  532|   	if (status != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def418]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:132:37: warning[-Wanalyzer-malloc-leak]: leak of 'prog'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:114:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:121:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:122:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:124:28: branch_false: following 'false' branch (when 'algorithm == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:128:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:128:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:132:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:132:37: danger: 'prog' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  130|   				exit(EXIT_SUCCESS);
#  131|   			}
#  132|-> 			algorithm = ldns_get_signing_algorithm_by_name(optarg);
#  133|   			if (algorithm == 0) {
#  134|   				fprintf(stderr, "Algorithm %s not found\n", optarg);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def419]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:164:25: warning[-Wanalyzer-malloc-leak]: leak of 'prog'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:114:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:121:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:122:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:164:25: danger: 'prog' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  162|   			break;
#  163|   		case 'v':
#  164|-> 			printf("DNSSEC key generator version %s (ldns version %s)\n", LDNS_VERSION, ldns_version());
#  165|   			exit(EXIT_SUCCESS);
#  166|   			break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def420]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:292:15: warning[-Wanalyzer-file-leak]: leak of FILE 'random'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:124:28: branch_false: following 'false' branch (when 'algorithm == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:128:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:128:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:132:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:133:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:175:12: branch_false: following 'false' branch (when 'algorithm != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:180:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:180:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:184:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:284:12: branch_true: following 'true' branch (when 'random' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:285:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:285:26: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:286:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:292:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:292:15: danger: 'random' leaks here; was opened at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
#  290|   	}
#  291|   
#  292|-> 	(void)ldns_init_random(random, (unsigned int) bits/8);
#  293|   	fclose(random);
#  294|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def421]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:292:15: warning[-Wanalyzer-malloc-leak]: leak of 'random'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:124:28: branch_false: following 'false' branch (when 'algorithm == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:128:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:128:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:132:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:133:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:175:12: branch_false: following 'false' branch (when 'algorithm != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:180:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:180:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:184:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:284:12: branch_true: following 'true' branch (when 'random' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:285:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:285:26: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:286:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:292:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:292:15: danger: 'random' leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
#  290|   	}
#  291|   
#  292|-> 	(void)ldns_init_random(random, (unsigned int) bits/8);
#  293|   	fclose(random);
#  294|   

Error: CPPCHECK_WARNING (CWE-476): [#def422]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:371: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: filename
#  369|   	/* print the public key RR to .key */
#  370|   	filename = LDNS_XMALLOC(char, strlen(owner) + 17);
#  371|-> 	snprintf(filename, strlen(owner) + 16, "K%s+%03u+%05u.key", owner, algorithm, (unsigned int) ldns_key_keytag(key));
#  372|   	file = fopen(filename, "w");
#  373|   	if (!file) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def423]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:371:102: warning[-Wanalyzer-malloc-leak]: leak of 'filename'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:114:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:124:28: branch_false: following 'false' branch (when 'algorithm == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:128:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:128:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:132:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:133:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:175:12: branch_false: following 'false' branch (when 'algorithm != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:180:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:180:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:184:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:284:12: branch_true: following 'true' branch (when 'random' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:285:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:286:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:292:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:300:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:307:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:316:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:321:30: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:370:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:371:102: danger: 'filename' leaks here; was allocated at [(20)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/19)
#  369|   	/* print the public key RR to .key */
#  370|   	filename = LDNS_XMALLOC(char, strlen(owner) + 17);
#  371|-> 	snprintf(filename, strlen(owner) + 16, "K%s+%03u+%05u.key", owner, algorithm, (unsigned int) ldns_key_keytag(key));
#  372|   	file = fopen(filename, "w");
#  373|   	if (!file) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def424]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:383:17: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "w")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:124:28: branch_false: following 'false' branch (when 'algorithm == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:128:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:128:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:132:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:133:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:175:12: branch_false: following 'false' branch (when 'algorithm != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:180:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:180:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:184:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:284:12: branch_true: following 'true' branch (when 'random' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:285:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:286:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:292:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:300:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:307:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:316:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:321:30: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:372:16: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:373:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:383:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:383:17: danger: 'fopen(filename, "w")' leaks here; was opened at [(19)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/18)
#  381|   	} else {
#  382|   		/* temporarily set question so that TTL is not printed */
#  383|-> 		ldns_rr_set_question(pubkey, true);
#  384|   		ldns_rr_print(file, pubkey);
#  385|   		ldns_rr_set_question(pubkey, false);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def425]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:383:17: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "w")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:124:28: branch_false: following 'false' branch (when 'algorithm == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:128:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:128:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:132:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:133:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:175:12: branch_false: following 'false' branch (when 'algorithm != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:180:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:180:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:184:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:284:12: branch_true: following 'true' branch (when 'random' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:285:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:286:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:292:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:300:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:307:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:316:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:321:30: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:372:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:373:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:383:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:383:17: danger: 'fopen(filename, "w")' leaks here; was allocated at [(19)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/18)
#  381|   	} else {
#  382|   		/* temporarily set question so that TTL is not printed */
#  383|-> 		ldns_rr_set_question(pubkey, true);
#  384|   		ldns_rr_print(file, pubkey);
#  385|   		ldns_rr_set_question(pubkey, false);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def426]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:384:17: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "w")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:124:28: branch_false: following 'false' branch (when 'algorithm == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:128:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:128:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:132:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:133:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:175:12: branch_false: following 'false' branch (when 'algorithm != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:180:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:180:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:184:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:284:12: branch_true: following 'true' branch (when 'random' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:285:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:286:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:292:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:300:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:307:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:316:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:321:30: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:372:16: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:373:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:383:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:384:17: danger: 'fopen(filename, "w")' leaks here; was opened at [(19)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/18)
#  382|   		/* temporarily set question so that TTL is not printed */
#  383|   		ldns_rr_set_question(pubkey, true);
#  384|-> 		ldns_rr_print(file, pubkey);
#  385|   		ldns_rr_set_question(pubkey, false);
#  386|   		fclose(file);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def427]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:384:17: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "w")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:124:28: branch_false: following 'false' branch (when 'algorithm == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:128:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:128:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:132:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:133:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:175:12: branch_false: following 'false' branch (when 'algorithm != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:180:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:180:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:184:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:284:12: branch_true: following 'true' branch (when 'random' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:285:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:286:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:292:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:300:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:307:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:316:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:321:30: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:372:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:373:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:383:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:384:17: danger: 'fopen(filename, "w")' leaks here; was allocated at [(19)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/18)
#  382|   		/* temporarily set question so that TTL is not printed */
#  383|   		ldns_rr_set_question(pubkey, true);
#  384|-> 		ldns_rr_print(file, pubkey);
#  385|   		ldns_rr_set_question(pubkey, false);
#  386|   		fclose(file);

Error: CPPCHECK_WARNING (CWE-476): [#def428]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:397: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: filename
#  395|   	/* print the priv key to stderr */
#  396|   	filename = LDNS_XMALLOC(char, strlen(owner) + 21);
#  397|-> 	snprintf(filename, strlen(owner) + 20, "K%s+%03u+%05u.private", owner, algorithm, (unsigned int) ldns_key_keytag(key));
#  398|   	/* use open() here to prevent creating world-readable private keys (CVE-2014-3209)*/
#  399|   	fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);

Error: CPPCHECK_WARNING (CWE-476): [#def429]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-keygen.c:426: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: filename
#  424|   		algorithm != LDNS_SIGN_HMACSHA512) {
#  425|   		filename = LDNS_XMALLOC(char, strlen(owner) + 16);
#  426|-> 		snprintf(filename, strlen(owner) + 15, "K%s+%03u+%05u.ds", owner, algorithm, (unsigned int) ldns_key_keytag(key));
#  427|   		file = fopen(filename, "w");
#  428|   		if (!file) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def430]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:78:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor 's'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:169:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:193:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:194:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:259:27: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:193:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:287:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:290:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:294:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:297:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:304:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:312:11: branch_false: following 'false' branch (when 'include_soa == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:327:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:327:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:340:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:340:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:341:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:350:18: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:354:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:354:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:361:18: branch_true: following 'true' branch (when 'i < argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:366:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:366:19: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:367:57: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:374:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:379:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:379:37: branch_true: following 'true' branch (when 'ai_res' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:382:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:382:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:385:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:385:29: acquire_resource: socket created here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:387:27: branch_false: following 'false' branch (when 's != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:389:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:389:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:394:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-notify.c:394:25: call_function: calling 'notify_host' from 'main'
#   76|   	while(!got_ack) {
#   77|   		/* send it */
#   78|-> 		if(sendto(s, (void*)wire, wiresize, 0, 
#   79|   			res->ai_addr, res->ai_addrlen) == -1) {
#   80|   			printf("warning: send to %s failed: %s\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def431]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:67:41: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'nsec3_salt'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:48:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:49:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:54:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:58:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:58:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:62:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:62:28: branch_false: following 'false' branch (when 'nsec3_salt' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:63:56: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:64:38: acquire_memory: this call could return NULL
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:65:37: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:66:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:66:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:67:41: danger: 'nsec3_salt + (sizetype)(c / 2)' could be NULL: unchecked value from [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#   65|   			for (c = 0; c < (int) strlen(optarg); c += 2) {
#   66|   				if (isxdigit((int) optarg[c]) && isxdigit((int) optarg[c+1])) {
#   67|-> 					nsec3_salt[c/2] = (uint8_t) ldns_hexdigit_to_int(optarg[c]) * 16 +
#   68|   						ldns_hexdigit_to_int(optarg[c+1]);
#   69|   				} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:67:69: warning[-Wanalyzer-malloc-leak]: leak of 'nsec3_salt'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:48:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:49:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:54:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:58:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:58:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:62:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:62:28: branch_false: following 'false' branch (when 'nsec3_salt' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:63:56: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:64:38: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:65:37: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:66:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:66:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:67:69: danger: 'nsec3_salt' leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
#   65|   			for (c = 0; c < (int) strlen(optarg); c += 2) {
#   66|   				if (isxdigit((int) optarg[c]) && isxdigit((int) optarg[c+1])) {
#   67|-> 					nsec3_salt[c/2] = (uint8_t) ldns_hexdigit_to_int(optarg[c]) * 16 +
#   68|   						ldns_hexdigit_to_int(optarg[c+1]);
#   69|   				} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:67:69: warning[-Wanalyzer-malloc-leak]: leak of 'prog'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:45:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:48:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:49:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:54:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:58:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:58:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:62:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:62:28: branch_false: following 'false' branch (when 'nsec3_salt' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:63:56: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:65:37: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:66:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:66:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:67:69: danger: 'prog' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   65|   			for (c = 0; c < (int) strlen(optarg); c += 2) {
#   66|   				if (isxdigit((int) optarg[c]) && isxdigit((int) optarg[c+1])) {
#   67|-> 					nsec3_salt[c/2] = (uint8_t) ldns_hexdigit_to_int(optarg[c]) * 16 +
#   68|   						ldns_hexdigit_to_int(optarg[c+1]);
#   69|   				} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:68:49: warning[-Wanalyzer-malloc-leak]: leak of 'nsec3_salt'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:48:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:49:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:54:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:58:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:58:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:62:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:62:28: branch_false: following 'false' branch (when 'nsec3_salt' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:63:56: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:64:38: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:65:37: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:66:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:66:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:68:49: danger: 'nsec3_salt' leaks here; was allocated at [(11)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/10)
#   66|   				if (isxdigit((int) optarg[c]) && isxdigit((int) optarg[c+1])) {
#   67|   					nsec3_salt[c/2] = (uint8_t) ldns_hexdigit_to_int(optarg[c]) * 16 +
#   68|-> 						ldns_hexdigit_to_int(optarg[c+1]);
#   69|   				} else {
#   70|   					fprintf(stderr, "Salt value is not valid hex data.\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:68:49: warning[-Wanalyzer-malloc-leak]: leak of 'prog'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:45:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:48:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:49:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:54:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:58:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:58:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:62:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:62:28: branch_false: following 'false' branch (when 'nsec3_salt' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:63:56: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:65:37: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:66:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:66:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:68:49: danger: 'prog' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#   66|   				if (isxdigit((int) optarg[c]) && isxdigit((int) optarg[c+1])) {
#   67|   					nsec3_salt[c/2] = (uint8_t) ldns_hexdigit_to_int(optarg[c]) * 16 +
#   68|-> 						ldns_hexdigit_to_int(optarg[c+1]);
#   69|   				} else {
#   70|   					fprintf(stderr, "Salt value is not valid hex data.\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:98:25: warning[-Wanalyzer-malloc-leak]: leak of 'prog'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:45:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:48:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:90:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:93:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:98:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:98:25: danger: 'prog' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#   96|   		exit(EXIT_FAILURE);
#   97|   	} else {
#   98|-> 		dname = ldns_dname_new_frm_str(argv[0]);
#   99|   		if (!dname) {
#  100|   			free(prog);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:106:32: warning[-Wanalyzer-malloc-leak]: leak of 'prog'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:45:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:93:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:98:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:99:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:106:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:106:32: danger: 'prog' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  104|   			return EXIT_FAILURE;
#  105|   		}
#  106|-> 		hashed_dname = ldns_nsec3_hash_name(dname,
#  107|   		                                    nsec3_algorithm,
#  108|   		                                    nsec3_iterations,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def438]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:118:17: warning[-Wanalyzer-malloc-leak]: leak of 'prog'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:45:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:93:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:98:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:99:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:106:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:111:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:118:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:118:17: danger: 'prog' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  116|   			return EXIT_FAILURE;
#  117|   		}
#  118|-> 		ldns_rdf_print(stdout, hashed_dname);
#  119|   		printf("\n");
#  120|   		ldns_rdf_deep_free(dname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:120:17: warning[-Wanalyzer-malloc-leak]: leak of 'prog'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:45:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:93:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:98:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:99:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:106:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:111:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:118:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:120:17: danger: 'prog' leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  118|   		ldns_rdf_print(stdout, hashed_dname);
#  119|   		printf("\n");
#  120|-> 		ldns_rdf_deep_free(dname);
#  121|   		ldns_rdf_deep_free(hashed_dname);
#  122|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def440]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:121:17: warning[-Wanalyzer-malloc-leak]: leak of 'prog'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:45:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:93:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:98:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:99:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:106:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:111:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:118:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-nsec3-hash.c:121:17: danger: 'prog' leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  119|   		printf("\n");
#  120|   		ldns_rdf_deep_free(dname);
#  121|-> 		ldns_rdf_deep_free(hashed_dname);
#  122|   	}
#  123|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def441]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-resolver.c:34:13: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(argv[1], "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-resolver.c:22:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-resolver.c:28:22: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-resolver.c:28:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-resolver.c:33:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-resolver.c:34:13: danger: 'fopen(argv[1], "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   32|   
#   33|   	printf("Trying to read from %s\n", argv[1]);
#   34|-> 	s = ldns_resolver_new_frm_fp_l(&r, rand, &line);
#   35|   	if (s != LDNS_STATUS_OK) {
#   36|   		printf("Failed: %s at line %d\n", ldns_get_errorstr_by_id(s), line);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-resolver.c:34:13: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(argv[1], "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-resolver.c:22:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-resolver.c:28:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-resolver.c:28:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-resolver.c:33:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-resolver.c:34:13: danger: 'fopen(argv[1], "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   32|   
#   33|   	printf("Trying to read from %s\n", argv[1]);
#   34|-> 	s = ldns_resolver_new_frm_fp_l(&r, rand, &line);
#   35|   	if (s != LDNS_STATUS_OK) {
#   36|   		printf("Failed: %s at line %d\n", ldns_get_errorstr_by_id(s), line);

Error: CPPCHECK_WARNING (CWE-476): [#def443]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:55: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: keyname
#   53|   	keyname = strdup(argv[0]);
#   54|   
#   55|-> 	keyfp = fopen(keyname, "r");
#   56|   	if (!keyfp) {
#   57|   		fprintf(stderr, "Failed to open public key file %s: %s\n", keyname,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def444]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(keyname, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:16: branch_true: following 'true' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:49:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:55:17: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:56:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: danger: 'fopen(keyname, "r")' leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   60|   	}
#   61|   
#   62|-> 	result = ldns_rr_new_frm_fp(&k, keyfp, 0, &origin, NULL);
#   63|   	/* what does this while loop do? */
#   64|   	while (result == LDNS_STATUS_SYNTAX_ORIGIN) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def445]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(keyname, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:16: branch_true: following 'true' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:49:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:55:17: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:56:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: danger: 'fopen(keyname, "r")' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#   60|   	}
#   61|   
#   62|-> 	result = ldns_rr_new_frm_fp(&k, keyfp, 0, &origin, NULL);
#   63|   	/* what does this while loop do? */
#   64|   	while (result == LDNS_STATUS_SYNTAX_ORIGIN) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def446]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: warning[-Wanalyzer-malloc-leak]: leak of 'keyname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:16: branch_true: following 'true' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:49:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:56:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: danger: 'keyname' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   60|   	}
#   61|   
#   62|-> 	result = ldns_rr_new_frm_fp(&k, keyfp, 0, &origin, NULL);
#   63|   	/* what does this while loop do? */
#   64|   	while (result == LDNS_STATUS_SYNTAX_ORIGIN) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def447]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:65:26: warning[-Wanalyzer-malloc-leak]: leak of 'keyname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:16: branch_true: following 'true' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:49:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:56:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:64:16: branch_true: following 'true' branch (when 'result == 63')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:65:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:65:26: danger: 'keyname' leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#   63|   	/* what does this while loop do? */
#   64|   	while (result == LDNS_STATUS_SYNTAX_ORIGIN) {
#   65|-> 		result = ldns_rr_new_frm_fp(&k, keyfp, 0, &origin, NULL);
#   66|   	}
#   67|   	if (result != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def448]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:68:17: warning[-Wanalyzer-malloc-leak]: leak of 'keyname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:16: branch_true: following 'true' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:49:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:56:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:67:12: branch_true: following 'true' branch (when 'result != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:68:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:68:17: danger: 'keyname' leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#   66|   	}
#   67|   	if (result != LDNS_STATUS_OK) {
#   68|-> 		fprintf(stderr, "Could not read public key from file %s: %s\n", keyname, ldns_get_errorstr_by_id(result));
#   69|   		exit(EXIT_FAILURE);
#   70|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def449]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:73:34: warning[-Wanalyzer-malloc-leak]: leak of 'keyname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:16: branch_true: following 'true' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:49:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:56:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:67:12: branch_false: following 'false' branch (when 'result == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:71:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:73:34: danger: 'keyname' leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
#   71|   	fclose(keyfp);
#   72|   
#   73|-> 	flags = ldns_read_uint16(ldns_rdf_data(ldns_rr_dnskey_flags(k)));
#   74|   	flags |= LDNS_KEY_REVOKE_KEY;
#   75|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def450]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:73:48: warning[-Wanalyzer-malloc-leak]: leak of 'keyname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:16: branch_true: following 'true' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:49:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:56:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:67:12: branch_false: following 'false' branch (when 'result == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:71:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:73:48: danger: 'keyname' leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#   71|   	fclose(keyfp);
#   72|   
#   73|-> 	flags = ldns_read_uint16(ldns_rdf_data(ldns_rr_dnskey_flags(k)));
#   74|   	flags |= LDNS_KEY_REVOKE_KEY;
#   75|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def451]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:76:14: warning[-Wanalyzer-malloc-leak]: leak of 'keyname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:16: branch_true: following 'true' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:49:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:56:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:67:12: branch_false: following 'false' branch (when 'result == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:71:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:76:14: danger: 'keyname' leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
#   74|   	flags |= LDNS_KEY_REVOKE_KEY;
#   75|   
#   76|-> 	if (!ldns_rr_dnskey_set_flags(k,
#   77|   		ldns_native2rdf_int16(LDNS_RDF_TYPE_INT16, flags)))
#   78|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def452]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:86:17: warning[-Wanalyzer-malloc-leak]: leak of 'keyname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:16: branch_true: following 'true' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:39:20: branch_true: following 'true' branch (when the strings are equal)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:46:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:49:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:56:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:67:12: branch_false: following 'false' branch (when 'result == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:71:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:76:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:85:12: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:85:12: branch_true: following 'true' branch (when 'nofile != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:86:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:86:17: danger: 'keyname' leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
#   84|   
#   85|   	if (nofile)
#   86|-> 		ldns_rr_print(stdout,k);
#   87|   	else {
#   88|   		keyfp = fopen(keyname, "w");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def453]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:94:25: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(keyname, "w")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:16: branch_true: following 'true' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:49:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:56:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:67:12: branch_false: following 'false' branch (when 'result == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:71:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:76:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:85:12: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:85:12: branch_false: following 'false' branch (when 'nofile == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:88:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:88:25: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:89:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:94:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:94:25: danger: 'fopen(keyname, "w")' leaks here; was opened at [(13)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/12)
#   92|   			exit(EXIT_FAILURE);
#   93|   		} else {
#   94|-> 			ldns_rr_print(keyfp, k);
#   95|   			fclose(keyfp);
#   96|   			fprintf(stdout, "DNSKEY revoked\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def454]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:94:25: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(keyname, "w")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:16: branch_true: following 'true' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:49:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:56:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:67:12: branch_false: following 'false' branch (when 'result == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:71:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:76:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:85:12: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:85:12: branch_false: following 'false' branch (when 'nofile == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:88:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:88:25: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:89:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:94:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:94:25: danger: 'fopen(keyname, "w")' leaks here; was allocated at [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12)
#   92|   			exit(EXIT_FAILURE);
#   93|   		} else {
#   94|-> 			ldns_rr_print(keyfp, k);
#   95|   			fclose(keyfp);
#   96|   			fprintf(stdout, "DNSKEY revoked\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def455]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:94:25: warning[-Wanalyzer-malloc-leak]: leak of 'keyname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:16: branch_true: following 'true' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:38:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:49:12: branch_false: following 'false' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:53:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:56:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:62:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:67:12: branch_false: following 'false' branch (when 'result == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:71:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:76:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:85:12: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:85:12: branch_false: following 'false' branch (when 'nofile == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:88:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:89:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:94:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-revoke.c:94:25: danger: 'keyname' leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
#   92|   			exit(EXIT_FAILURE);
#   93|   		} else {
#   94|-> 			ldns_rr_print(keyfp, k);
#   95|   			fclose(keyfp);
#   96|   			fprintf(stdout, "DNSKEY revoked\n");

Error: CPPCHECK_WARNING (CWE-476): [#def456]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:228: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: keyfile_name
#  226|   	keyfile_name = LDNS_XMALLOC(char,
#  227|   	                            strlen(keyfile_name_base) + 5);
#  228|-> 	snprintf(keyfile_name,
#  229|   		 strlen(keyfile_name_base) + 5,
#  230|   		 "%s.key",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def457]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:238:21: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(keyfile_name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:235:19: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:237:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:238:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:238:21: danger: 'fopen(keyfile_name, "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  236|   	line_nr = 0;
#  237|   	if (keyfile) {
#  238|-> 		if (ldns_rr_new_frm_fp_l(&pubkey,
#  239|   					 keyfile,
#  240|   					 &default_ttl,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def458]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:238:21: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(keyfile_name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:235:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:237:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:238:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:238:21: danger: 'fopen(keyfile_name, "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  236|   	line_nr = 0;
#  237|   	if (keyfile) {
#  238|-> 		if (ldns_rr_new_frm_fp_l(&pubkey,
#  239|   					 keyfile,
#  240|   					 &default_ttl,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def459]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:708:52: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:607:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:701:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:702:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:701:29: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:704:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:706:33: call_function: calling 'check_tm' from 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:706:33: return_function: returning to 'main' from 'check_tm'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:708:52: danger: 'outputfile_name' leaks here; was allocated at [(4)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/3)
#  706|   			   	check_tm(tm);
#  707|   				expiration = 
#  708|-> 					(uint32_t) ldns_mktime_from_utc(&tm);
#  709|   			} else if (strlen(optarg) == 14 &&
#  710|   					 sscanf(optarg, "%4d%2d%2d%2d%2d%2d", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def460]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:716:52: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:607:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:701:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:709:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:709:35: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:710:42: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:709:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:712:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:714:33: call_function: calling 'check_tm' from 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:714:33: return_function: returning to 'main' from 'check_tm'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:716:52: danger: 'outputfile_name' leaks here; was allocated at [(4)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/3)
#  714|   			   	check_tm(tm);
#  715|   				expiration = 
#  716|-> 					(uint32_t) ldns_mktime_from_utc(&tm);
#  717|   			} else {
#  718|   				expiration = (uint32_t) atol(optarg);

Error: CPPCHECK_WARNING (CWE-476): [#def461]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:723: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: outputfile_name
#  721|   		case 'f':
#  722|   			outputfile_name = LDNS_XMALLOC(char, MAX_FILENAME_LEN + 1);
#  723|-> 			strncpy(outputfile_name, optarg, MAX_FILENAME_LEN);
#  724|   			break;
#  725|   		case 'i':

Error: GCC_ANALYZER_WARNING (CWE-688): [#def462]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:723:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'outputfile_name' where non-null expected
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: this call could return NULL
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:723:25: danger: argument 1 ('outputfile_name') from [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
#argument 1 of '__builtin_strncpy' must be non-null
#  721|   		case 'f':
#  722|   			outputfile_name = LDNS_XMALLOC(char, MAX_FILENAME_LEN + 1);
#  723|-> 			strncpy(outputfile_name, optarg, MAX_FILENAME_LEN);
#  724|   			break;
#  725|   		case 'i':

Error: GCC_ANALYZER_WARNING (CWE-401): [#def463]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:765:25: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:765:25: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  763|   			break;
#  764|   		case 'v':
#  765|-> 			printf("zone signer version %s (ldns version %s)\n", LDNS_VERSION, ldns_version());
#  766|   			exit(EXIT_SUCCESS);
#  767|   			break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def464]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:823:41: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'nsec3_salt'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:815:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:819:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:820:38: acquire_memory: this call could return NULL
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:821:37: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:822:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:822:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:823:41: danger: 'nsec3_salt + (sizetype)(c / 2)' could be NULL: unchecked value from [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#  821|   			for (c = 0; c < (int) strlen(optarg); c += 2) {
#  822|   				if (isxdigit((int) optarg[c]) && isxdigit((int) optarg[c+1])) {
#  823|-> 					nsec3_salt[c/2] = (uint8_t) ldns_hexdigit_to_int(optarg[c]) * 16 +
#  824|   						ldns_hexdigit_to_int(optarg[c+1]);
#  825|   				} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def465]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:823:69: warning[-Wanalyzer-malloc-leak]: leak of 'nsec3_salt'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:815:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:819:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:820:38: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:821:37: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:822:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:822:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:823:69: danger: 'nsec3_salt' leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
#  821|   			for (c = 0; c < (int) strlen(optarg); c += 2) {
#  822|   				if (isxdigit((int) optarg[c]) && isxdigit((int) optarg[c+1])) {
#  823|-> 					nsec3_salt[c/2] = (uint8_t) ldns_hexdigit_to_int(optarg[c]) * 16 +
#  824|   						ldns_hexdigit_to_int(optarg[c+1]);
#  825|   				} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def466]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:824:49: warning[-Wanalyzer-malloc-leak]: leak of 'nsec3_salt'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:815:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:819:45: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:820:38: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:821:37: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:822:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:822:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:824:49: danger: 'nsec3_salt' leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  822|   				if (isxdigit((int) optarg[c]) && isxdigit((int) optarg[c+1])) {
#  823|   					nsec3_salt[c/2] = (uint8_t) ldns_hexdigit_to_int(optarg[c]) * 16 +
#  824|-> 						ldns_hexdigit_to_int(optarg[c+1]);
#  825|   				} else {
#  826|   					fprintf(stderr, "Salt value is not valid hex data.\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def467]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:860:21: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:859:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:860:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:860:21: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
#  858|   	
#  859|   	if (strncmp(zonefile_name, "-", 2) == 0) {
#  860|-> 		s = ldns_zone_new_frm_fp_l(&orig_zone,
#  861|   					   stdin,
#  862|   					   origin,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def468]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:867:33: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:859:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:860:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:867:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:867:33: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
#  865|   					   &line_nr);
#  866|   			if (s != LDNS_STATUS_OK) {
#  867|-> 				fprintf(stderr, "Zone not read, error: %s at stdin line %d\n", 
#  868|   					   ldns_get_errorstr_by_id(s),
#  869|   					   line_nr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def469]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:859:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:860:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
#  870|   				exit(EXIT_FAILURE);
#  871|   			} else {
#  872|-> 				orig_soa = ldns_zone_soa(orig_zone);
#  873|   				if (!orig_soa) {
#  874|   					fprintf(stderr,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def470]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:859:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:860:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
#  876|   					exit(EXIT_FAILURE);
#  877|   				}
#  878|-> 				orig_rrs = ldns_zone_rrs(orig_zone);
#  879|   				if (!orig_rrs) {
#  880|   					fprintf(stderr,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def471]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:895:29: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(zonefile_name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:859:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:886:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:886:28: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:888:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:895:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:895:29: danger: 'fopen(zonefile_name, "r")' leaks here; was opened at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
#  893|   			exit(EXIT_FAILURE);
#  894|   		} else {
#  895|-> 			s = ldns_zone_new_frm_fp_l(&orig_zone,
#  896|   			                           zonefile,
#  897|   			                           origin,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def472]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:895:29: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(zonefile_name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:859:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:886:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:886:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:888:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:895:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:895:29: danger: 'fopen(zonefile_name, "r")' leaks here; was allocated at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
#  893|   			exit(EXIT_FAILURE);
#  894|   		} else {
#  895|-> 			s = ldns_zone_new_frm_fp_l(&orig_zone,
#  896|   			                           zonefile,
#  897|   			                           origin,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def473]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:895:29: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:859:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:886:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:888:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:895:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:895:29: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
#  893|   			exit(EXIT_FAILURE);
#  894|   		} else {
#  895|-> 			s = ldns_zone_new_frm_fp_l(&orig_zone,
#  896|   			                           zonefile,
#  897|   			                           origin,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def474]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:902:33: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:859:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:886:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:888:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:895:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:901:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:902:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:902:33: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
#  900|   			                           &line_nr);
#  901|   			if (s != LDNS_STATUS_OK) {
#  902|-> 				fprintf(stderr, "Zone not read, error: %s at %s line %d\n", 
#  903|   					   ldns_get_errorstr_by_id(s), 
#  904|   					   zonefile_name, line_nr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def475]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:907:44: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:859:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:886:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:888:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:895:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:901:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:907:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:907:44: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
#  905|   				exit(EXIT_FAILURE);
#  906|   			} else {
#  907|-> 				orig_soa = ldns_zone_soa(orig_zone);
#  908|   				if (!orig_soa) {
#  909|   					fprintf(stderr,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def476]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:913:44: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:859:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:886:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:888:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:895:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:901:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:907:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:908:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:913:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:913:44: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
#  911|   					exit(EXIT_FAILURE);
#  912|   				}
#  913|-> 				orig_rrs = ldns_zone_rrs(orig_zone);
#  914|   				if (!orig_rrs) {
#  915|   					fprintf(stderr,

Error: CPPCHECK_WARNING (CWE-476): [#def477]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:929: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: keyfile_name
#  927|   		keyfile_name_base = argv[argi];
#  928|   		keyfile_name = LDNS_XMALLOC(char, strlen(keyfile_name_base) + 9);
#  929|-> 		snprintf(keyfile_name,
#  930|   			    strlen(keyfile_name_base) + 9,
#  931|   			    "%s.private",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def478]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:941:29: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(keyfile_name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_true: following 'true' branch (when 'argi < argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:927:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:933:27: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:935:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:941:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:941:29: danger: 'fopen(keyfile_name, "r")' leaks here; was opened at [(11)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/10)
#  939|   				   strerror(errno));
#  940|   		} else {
#  941|-> 			s = ldns_key_new_frm_fp_l(&key, keyfile, &line_nr);
#  942|   			fclose(keyfile);
#  943|   			if (s == LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def479]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:941:29: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(keyfile_name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_true: following 'true' branch (when 'argi < argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:927:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:933:27: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:935:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:941:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:941:29: danger: 'fopen(keyfile_name, "r")' leaks here; was allocated at [(11)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/10)
#  939|   				   strerror(errno));
#  940|   		} else {
#  941|-> 			s = ldns_key_new_frm_fp_l(&key, keyfile, &line_nr);
#  942|   			fclose(keyfile);
#  943|   			if (s == LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def480]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:941:29: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_true: following 'true' branch (when 'argi < argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:927:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:935:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:941:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:941:29: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
#  939|   				   strerror(errno));
#  940|   		} else {
#  941|-> 			s = ldns_key_new_frm_fp_l(&key, keyfile, &line_nr);
#  942|   			fclose(keyfile);
#  943|   			if (s == LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def481]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:958:33: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_true: following 'true' branch (when 'argi < argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:927:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:935:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:941:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:943:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:958:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:958:33: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
#  956|   				ldns_key_list_push_key(keys, key);
#  957|   			} else {
#  958|-> 				fprintf(stderr, "Error reading key from %s at line %d: %s\n", argv[argi], line_nr, ldns_get_errorstr_by_id(s));
#  959|   			}
#  960|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def482]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:859:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:860:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
#  995|   				  expiration );
#  996|   #endif
#  997|-> 	if (ldns_key_list_key_count(keys) < 1 
#  998|   	&&  !(signflags & LDNS_SIGN_NO_KEYS_NO_NSECS)) {
#  999|   			

Error: GCC_ANALYZER_WARNING (CWE-401): [#def483]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
# 1003|   	}
# 1004|   
# 1005|-> 	signed_zone = ldns_dnssec_zone_new();
# 1006|   	if (unixtime_serial) {
# 1007|   		ldns_rr_soa_increment_func_int(ldns_zone_soa(orig_zone),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def484]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2)
# 1008|   			ldns_soa_serial_unixtime, 0);
# 1009|   	}
# 1010|-> 	if (ldns_dnssec_zone_add_rr(signed_zone, ldns_zone_soa(orig_zone)) !=
# 1011|   	    LDNS_STATUS_OK) {
# 1012|   		fprintf(stderr,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def485]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:18: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:18: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2)
# 1015|   	
# 1016|   	for (i = 0;
# 1017|-> 	     i < ldns_rr_list_rr_count(ldns_zone_rrs(orig_zone));
# 1018|   	     i++) {
# 1019|   		if (ldns_dnssec_zone_add_rr(signed_zone, 

Error: GCC_ANALYZER_WARNING (CWE-401): [#def486]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:40: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:40: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
# 1015|   	
# 1016|   	for (i = 0;
# 1017|-> 	     i < ldns_rr_list_rr_count(ldns_zone_rrs(orig_zone));
# 1018|   	     i++) {
# 1019|   		if (ldns_dnssec_zone_add_rr(signed_zone, 

Error: GCC_ANALYZER_WARNING (CWE-401): [#def487]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1019:21: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1020:42: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1019:21: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/2)
# 1017|   	     i < ldns_rr_list_rr_count(ldns_zone_rrs(orig_zone));
# 1018|   	     i++) {
# 1019|-> 		if (ldns_dnssec_zone_add_rr(signed_zone, 
# 1020|   		         ldns_rr_list_rr(ldns_zone_rrs(orig_zone), 
# 1021|   		         i)) !=

Error: GCC_ANALYZER_WARNING (CWE-401): [#def488]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1020:42: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1020:42: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1020:42: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/2)
# 1018|   	     i++) {
# 1019|   		if (ldns_dnssec_zone_add_rr(signed_zone, 
# 1020|-> 		         ldns_rr_list_rr(ldns_zone_rrs(orig_zone), 
# 1021|   		         i)) !=
# 1022|   		    LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def489]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1026:25: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1020:42: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1019:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1023:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1026:25: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/2)
# 1024|   			        "Error adding RR to dnssec zone");
# 1025|   			fprintf(stderr, ", skipping record:\n");
# 1026|-> 			ldns_rr_print(stderr, 
# 1027|   			  ldns_rr_list_rr(ldns_zone_rrs(orig_zone), i));
# 1028|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def490]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1027:27: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1020:42: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1019:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1023:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1027:27: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/2)
# 1025|   			fprintf(stderr, ", skipping record:\n");
# 1026|   			ldns_rr_print(stderr, 
# 1027|-> 			  ldns_rr_list_rr(ldns_zone_rrs(orig_zone), i));
# 1028|   		}
# 1029|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def491]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1027:43: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1020:42: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1019:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1023:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1027:43: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/2)
# 1025|   			fprintf(stderr, ", skipping record:\n");
# 1026|   			ldns_rr_print(stderr, 
# 1027|-> 			  ldns_rr_list_rr(ldns_zone_rrs(orig_zone), i));
# 1028|   		}
# 1029|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def492]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1031:21: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:14: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1031:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1031:21: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/2)
# 1029|   	}
# 1030|   	/* list to store newly created rrs, so we can free them later */
# 1031|-> 	added_rrs = ldns_rr_list_new();
# 1032|   
# 1033|   	if (use_nsec3) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def493]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1064:26: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:14: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1031:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1033:12: branch_false: following 'false' branch (when 'use_nsec3 == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1064:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1064:26: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/2)
# 1062|   			&fmt_st.hashmap);
# 1063|   	} else {
# 1064|-> 		result = ldns_dnssec_zone_sign_flg(signed_zone,
# 1065|   				added_rrs,
# 1066|   				keys,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def494]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1072:17: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:14: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1031:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1033:12: branch_false: following 'false' branch (when 'use_nsec3 == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1064:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1071:12: branch_true: following 'true' branch (when 'result != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1072:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1072:17: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/2)
# 1070|   	}
# 1071|   	if (result != LDNS_STATUS_OK) {
# 1072|-> 		fprintf(stderr, "Error signing zone: %s\n",
# 1073|   			   ldns_get_errorstr_by_id(result));
# 1074|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def495]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1078: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: outputfile_name
# 1076|   	if (!outputfile_name) {
# 1077|   		outputfile_name = LDNS_XMALLOC(char, MAX_FILENAME_LEN);
# 1078|-> 		snprintf(outputfile_name, MAX_FILENAME_LEN, "%s.signed", zonefile_name);
# 1079|   	}
# 1080|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def496]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1083:25: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:14: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1031:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1033:12: branch_false: following 'false' branch (when 'use_nsec3 == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1064:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1071:12: branch_false: following 'false' branch (when 'result == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1076:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1076:12: branch_false: following 'false' branch (when 'outputfile_name' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1082:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1082:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1083:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1083:25: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/2)
# 1081|   	if (signed_zone) {
# 1082|   		if (strncmp(outputfile_name, "-", 2) == 0) {
# 1083|-> 			ldns_dnssec_zone_print(stdout, signed_zone);
# 1084|   		} else {
# 1085|   			outputfile = fopen(outputfile_name, "w");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def497]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1090:33: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(outputfile_name, "w")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1033:12: branch_false: following 'false' branch (when 'use_nsec3 == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1064:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1076:12: branch_true: following 'true' branch (when 'outputfile_name' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1077:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1082:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1082:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1085:38: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1085:38: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1086:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1090:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1090:33: danger: 'fopen(outputfile_name, "w")' leaks here; was opened at [(19)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/18)
# 1088|   					   outputfile_name, strerror(errno));
# 1089|   			} else {
# 1090|-> 				ldns_dnssec_zone_print_fmt(
# 1091|   						outputfile, fmt, signed_zone);
# 1092|   				fclose(outputfile);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def498]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1090:33: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(outputfile_name, "w")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1033:12: branch_false: following 'false' branch (when 'use_nsec3 == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1064:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1076:12: branch_true: following 'true' branch (when 'outputfile_name' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1077:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1082:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1082:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1085:38: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1085:38: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1086:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1090:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1090:33: danger: 'fopen(outputfile_name, "w")' leaks here; was allocated at [(19)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/18)
# 1088|   					   outputfile_name, strerror(errno));
# 1089|   			} else {
# 1090|-> 				ldns_dnssec_zone_print_fmt(
# 1091|   						outputfile, fmt, signed_zone);
# 1092|   				fclose(outputfile);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def499]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1090:33: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:14: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1031:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1033:12: branch_false: following 'false' branch (when 'use_nsec3 == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1064:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1071:12: branch_false: following 'false' branch (when 'result == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1076:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1076:12: branch_false: following 'false' branch (when 'outputfile_name' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1082:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1082:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1085:38: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1086:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1090:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1090:33: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/2)
# 1088|   					   outputfile_name, strerror(errno));
# 1089|   			} else {
# 1090|-> 				ldns_dnssec_zone_print_fmt(
# 1091|   						outputfile, fmt, signed_zone);
# 1092|   				fclose(outputfile);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def500]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1099:21: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:14: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1031:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1033:12: branch_false: following 'false' branch (when 'use_nsec3 == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1064:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1071:12: branch_false: following 'false' branch (when 'result == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1076:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1076:12: branch_false: following 'false' branch (when 'outputfile_name' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1096:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1099:21: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/2)
# 1097|   
# 1098|   #ifdef HAVE_SSL
# 1099|-> 		if (ERR_peek_error()) {
# 1100|   #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(HAVE_LIBRESSL)
# 1101|   #ifdef HAVE_ERR_LOAD_CRYPTO_STRINGS

Error: GCC_ANALYZER_WARNING (CWE-401): [#def501]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1105:25: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:14: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1031:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1033:12: branch_false: following 'false' branch (when 'use_nsec3 == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1064:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1076:12: branch_false: following 'false' branch (when 'outputfile_name' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1096:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1099:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1105:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1105:25: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/2)
# 1103|   #endif
# 1104|   #endif
# 1105|-> 			ERR_print_errors_fp(stderr);
# 1106|   #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(HAVE_LIBRESSL)
# 1107|   #ifdef HAVE_ERR_FREE_STRINGS

Error: GCC_ANALYZER_WARNING (CWE-401): [#def502]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1116:9: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:14: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1031:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1033:12: branch_false: following 'false' branch (when 'use_nsec3 == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1064:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1076:12: branch_false: following 'false' branch (when 'outputfile_name' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1082:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1082:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1083:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1116:9: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/2)
# 1114|   	}
# 1115|   	
# 1116|-> 	ldns_key_list_free(keys);
# 1117|   	/* since the ldns_rr records are pointed to in both the ldns_zone
# 1118|   	 * and the ldns_dnssec_zone, we can either deep_free the

Error: GCC_ANALYZER_WARNING (CWE-401): [#def503]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1122:9: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:14: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1031:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1033:12: branch_false: following 'false' branch (when 'use_nsec3 == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1064:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1076:12: branch_false: following 'false' branch (when 'outputfile_name' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1082:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1122:9: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/2)
# 1120|   	 * records, or the other way around
# 1121|   	 */
# 1122|-> 	ldns_dnssec_zone_free(signed_zone);
# 1123|   	ldns_zone_deep_free(orig_zone);
# 1124|   	ldns_rr_list_deep_free(added_rrs);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def504]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1123:9: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:14: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1031:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1033:12: branch_false: following 'false' branch (when 'use_nsec3 == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1064:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1076:12: branch_false: following 'false' branch (when 'outputfile_name' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1082:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1123:9: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/2)
# 1121|   	 */
# 1122|   	ldns_dnssec_zone_free(signed_zone);
# 1123|-> 	ldns_zone_deep_free(orig_zone);
# 1124|   	ldns_rr_list_deep_free(added_rrs);
# 1125|   	ldns_rdf_deep_free(origin);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def505]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1124:9: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:14: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1031:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1033:12: branch_false: following 'false' branch (when 'use_nsec3 == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1064:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1076:12: branch_false: following 'false' branch (when 'outputfile_name' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1082:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1124:9: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/2)
# 1122|   	ldns_dnssec_zone_free(signed_zone);
# 1123|   	ldns_zone_deep_free(orig_zone);
# 1124|-> 	ldns_rr_list_deep_free(added_rrs);
# 1125|   	ldns_rdf_deep_free(origin);
# 1126|   	LDNS_FREE(outputfile_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def506]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1125:9: warning[-Wanalyzer-malloc-leak]: leak of 'outputfile_name'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:677:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:722:43: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:676:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:846:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:849:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:854:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:866:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:872:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:873:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:878:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:879:36: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:926:16: branch_false: following 'false' branch (when 'argi >= argc')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:997:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1005:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1006:12: branch_false: following 'false' branch (when 'unixtime_serial == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1010:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1017:14: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1031:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1033:12: branch_false: following 'false' branch (when 'use_nsec3 == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1064:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1076:12: branch_false: following 'false' branch (when 'outputfile_name' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1081:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1082:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-signzone.c:1125:9: danger: 'outputfile_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/2)
# 1123|   	ldns_zone_deep_free(orig_zone);
# 1124|   	ldns_rr_list_deep_free(added_rrs);
# 1125|-> 	ldns_rdf_deep_free(origin);
# 1126|   	LDNS_FREE(outputfile_name);
# 1127|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def507]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testns.c:193:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testns.c:492:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testns.c:512:9: call_function: calling 'log_msg' from 'main'
#  191|   	va_start(args, msg);
#  192|   	vfprintf(logfile, msg, args);
#  193|-> 	fflush(logfile);
#  194|   	va_end(args);
#  195|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def508]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testns.c:204:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testns.c:492:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testns.c:513:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testns.c:514:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testns.c:528:27: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testns.c:529:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testns.c:529:33: call_function: calling 'error' from 'main'
#  202|   	vfprintf(logfile, msg, args);
#  203|   	fprintf(logfile, "\n");
#  204|-> 	fflush(logfile);
#  205|   	va_end(args);
#  206|   	exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def509]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:46:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:576:1: enter_function: entry to 'read_datafile'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:16: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:592:26: call_function: calling 'read_entry' from 'read_datafile'
#   44|   	vfprintf(stderr, msg, args);
#   45|   	fprintf(stderr, "\n");
#   46|-> 	fflush(stderr);
#   47|   	va_end(args);
#   48|   	exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def510]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:46:9: warning[-Wanalyzer-malloc-leak]: leak of 'cur_reply'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:436:1: enter_function: entry to 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:449:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:450:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:20: call_function: calling 'str_keyword' from 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:20: return_function: returning to 'read_entry' from 'str_keyword'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:460:27: branch_false: following 'false' branch (when 'current' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:464:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:466:37: call_function: calling 'entry_add_reply' from 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:466:37: return_function: returning to 'read_entry' from 'entry_add_reply'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:449:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:450:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:454:23: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:457:20: call_function: inlined call to 'isendline' from 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:20: call_function: calling 'str_keyword' from 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:20: return_function: returning to 'read_entry' from 'str_keyword'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:19: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:460:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:460:27: branch_true: following 'true' branch (when 'current' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:461:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:461:33: call_function: calling 'error' from 'read_entry'
#   44|   	vfprintf(stderr, msg, args);
#   45|   	fprintf(stderr, "\n");
#   46|-> 	fflush(stderr);
#   47|   	va_end(args);
#   48|   	exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def511]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:46:9: warning[-Wanalyzer-malloc-leak]: leak of 'current'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:436:1: enter_function: entry to 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:449:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:450:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:20: call_function: calling 'str_keyword' from 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:20: return_function: returning to 'read_entry' from 'str_keyword'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:460:27: branch_false: following 'false' branch (when 'current' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:464:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:464:35: call_function: calling 'new_entry' from 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:464:35: return_function: returning to 'read_entry' from 'new_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:466:37: call_function: calling 'entry_add_reply' from 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:466:37: return_function: returning to 'read_entry' from 'entry_add_reply'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:449:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:450:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:454:23: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:457:20: call_function: inlined call to 'isendline' from 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:20: call_function: calling 'str_keyword' from 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:20: return_function: returning to 'read_entry' from 'str_keyword'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:19: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:460:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:460:27: branch_true: following 'true' branch (when 'current' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:461:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:461:33: call_function: calling 'error' from 'read_entry'
#   44|   	vfprintf(stderr, msg, args);
#   45|   	fprintf(stderr, "\n");
#   46|-> 	fflush(stderr);
#   47|   	va_end(args);
#   48|   	exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:46:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:576:1: enter_function: entry to 'read_datafile'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:592:26: call_function: calling 'read_entry' from 'read_datafile'
#   44|   	vfprintf(stderr, msg, args);
#   45|   	fprintf(stderr, "\n");
#   46|-> 	fflush(stderr);
#   47|   	va_end(args);
#   48|   	exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def513]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:46:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:576:1: enter_function: entry to 'read_datafile'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:589:68: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:589:17: call_function: calling 'error' from 'read_datafile'
#   44|   	vfprintf(stderr, msg, args);
#   45|   	fprintf(stderr, "\n");
#   46|-> 	fflush(stderr);
#   47|   	va_end(args);
#   48|   	exit(EXIT_FAILURE);

Error: CPPCHECK_WARNING (CWE-476): [#def514]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:84: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pkt
#   82|   		sizeof(struct reply_packet));
#   83|   	struct reply_packet ** p = &entry->reply_list;
#   84|-> 	pkt->next = NULL;
#   85|   	pkt->packet_sleep = 0;
#   86|   	pkt->reply = ldns_pkt_new();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def515]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:84:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'pkt'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:436:1: enter_function: entry to 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:449:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:450:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:20: call_function: calling 'str_keyword' from 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:20: return_function: returning to 'read_entry' from 'str_keyword'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:19: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:460:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:460:27: branch_false: following 'false' branch (when 'current' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:464:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:466:37: call_function: calling 'entry_add_reply' from 'read_entry'
#   82|   		sizeof(struct reply_packet));
#   83|   	struct reply_packet ** p = &entry->reply_list;
#   84|-> 	pkt->next = NULL;
#   85|   	pkt->packet_sleep = 0;
#   86|   	pkt->reply = ldns_pkt_new();

Error: CPPCHECK_WARNING (CWE-476): [#def516]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:85: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pkt
#   83|   	struct reply_packet ** p = &entry->reply_list;
#   84|   	pkt->next = NULL;
#   85|-> 	pkt->packet_sleep = 0;
#   86|   	pkt->reply = ldns_pkt_new();
#   87|   	pkt->reply_from_hex = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def517]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:86: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pkt
#   84|   	pkt->next = NULL;
#   85|   	pkt->packet_sleep = 0;
#   86|-> 	pkt->reply = ldns_pkt_new();
#   87|   	pkt->reply_from_hex = NULL;
#   88|   	pkt->raw_ednsdata = NULL;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def518]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:86:22: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:576:1: enter_function: entry to 'read_datafile'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:16: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:592:26: call_function: calling 'read_entry' from 'read_datafile'
#   84|   	pkt->next = NULL;
#   85|   	pkt->packet_sleep = 0;
#   86|-> 	pkt->reply = ldns_pkt_new();
#   87|   	pkt->reply_from_hex = NULL;
#   88|   	pkt->raw_ednsdata = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def519]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:86:22: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:576:1: enter_function: entry to 'read_datafile'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:592:26: call_function: calling 'read_entry' from 'read_datafile'
#   84|   	pkt->next = NULL;
#   85|   	pkt->packet_sleep = 0;
#   86|-> 	pkt->reply = ldns_pkt_new();
#   87|   	pkt->reply_from_hex = NULL;
#   88|   	pkt->raw_ednsdata = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def520]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:86:22: warning[-Wanalyzer-malloc-leak]: leak of 'new_entry()'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:436:1: enter_function: entry to 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:449:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:450:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:20: call_function: calling 'str_keyword' from 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:20: return_function: returning to 'read_entry' from 'str_keyword'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:19: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:460:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:460:27: branch_false: following 'false' branch (when 'current' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:464:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:464:35: call_function: calling 'new_entry' from 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:464:35: return_function: returning to 'read_entry' from 'new_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:466:37: call_function: calling 'entry_add_reply' from 'read_entry'
#   84|   	pkt->next = NULL;
#   85|   	pkt->packet_sleep = 0;
#   86|-> 	pkt->reply = ldns_pkt_new();
#   87|   	pkt->reply_from_hex = NULL;
#   88|   	pkt->raw_ednsdata = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:86:22: warning[-Wanalyzer-malloc-leak]: leak of 'pkt'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:436:1: enter_function: entry to 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:449:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:450:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:20: call_function: calling 'str_keyword' from 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:20: return_function: returning to 'read_entry' from 'str_keyword'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:19: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:460:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:460:27: branch_false: following 'false' branch (when 'current' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:464:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:466:37: call_function: calling 'entry_add_reply' from 'read_entry'
#   84|   	pkt->next = NULL;
#   85|   	pkt->packet_sleep = 0;
#   86|-> 	pkt->reply = ldns_pkt_new();
#   87|   	pkt->reply_from_hex = NULL;
#   88|   	pkt->raw_ednsdata = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def522]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:87: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pkt
#   85|   	pkt->packet_sleep = 0;
#   86|   	pkt->reply = ldns_pkt_new();
#   87|-> 	pkt->reply_from_hex = NULL;
#   88|   	pkt->raw_ednsdata = NULL;
#   89|   	/* link at end */

Error: CPPCHECK_WARNING (CWE-476): [#def523]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:88: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pkt
#   86|   	pkt->reply = ldns_pkt_new();
#   87|   	pkt->reply_from_hex = NULL;
#   88|-> 	pkt->raw_ednsdata = NULL;
#   89|   	/* link at end */
#   90|   	while(*p)

Error: CPPCHECK_WARNING (CWE-476): [#def524]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:241: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  239|   {
#  240|   	struct entry* e = LDNS_MALLOC(struct entry);
#  241|-> 	memset(e, 0, sizeof(*e));
#  242|   	e->match_opcode = false;
#  243|   	e->match_qtype = false;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def525]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:241:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'e' where non-null expected
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:436:1: enter_function: entry to 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:449:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:450:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:20: call_function: calling 'str_keyword' from 'read_entry'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:20: return_function: returning to 'read_entry' from 'str_keyword'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:459:19: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:460:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:460:27: branch_false: following 'false' branch (when 'current' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:464:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:464:35: call_function: calling 'new_entry' from 'read_entry'
#argument 1 of '__builtin_memset' must be non-null
#  239|   {
#  240|   	struct entry* e = LDNS_MALLOC(struct entry);
#  241|-> 	memset(e, 0, sizeof(*e));
#  242|   	e->match_opcode = false;
#  243|   	e->match_qtype = false;

Error: CPPCHECK_WARNING (CWE-476): [#def526]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:242: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  240|   	struct entry* e = LDNS_MALLOC(struct entry);
#  241|   	memset(e, 0, sizeof(*e));
#  242|-> 	e->match_opcode = false;
#  243|   	e->match_qtype = false;
#  244|   	e->match_qname = false;

Error: CPPCHECK_WARNING (CWE-476): [#def527]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:243: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  241|   	memset(e, 0, sizeof(*e));
#  242|   	e->match_opcode = false;
#  243|-> 	e->match_qtype = false;
#  244|   	e->match_qname = false;
#  245|   	e->match_subdomain = false;

Error: CPPCHECK_WARNING (CWE-476): [#def528]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:244: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  242|   	e->match_opcode = false;
#  243|   	e->match_qtype = false;
#  244|-> 	e->match_qname = false;
#  245|   	e->match_subdomain = false;
#  246|   	e->match_all = false;

Error: CPPCHECK_WARNING (CWE-476): [#def529]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:245: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  243|   	e->match_qtype = false;
#  244|   	e->match_qname = false;
#  245|-> 	e->match_subdomain = false;
#  246|   	e->match_all = false;
#  247|   	e->match_ttl = false;

Error: CPPCHECK_WARNING (CWE-476): [#def530]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:246: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  244|   	e->match_qname = false;
#  245|   	e->match_subdomain = false;
#  246|-> 	e->match_all = false;
#  247|   	e->match_ttl = false;
#  248|   	e->match_do = false;

Error: CPPCHECK_WARNING (CWE-476): [#def531]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:247: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  245|   	e->match_subdomain = false;
#  246|   	e->match_all = false;
#  247|-> 	e->match_ttl = false;
#  248|   	e->match_do = false;
#  249|   	e->match_noedns = false;

Error: CPPCHECK_WARNING (CWE-476): [#def532]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:248: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  246|   	e->match_all = false;
#  247|   	e->match_ttl = false;
#  248|-> 	e->match_do = false;
#  249|   	e->match_noedns = false;
#  250|   	e->match_serial = false;

Error: CPPCHECK_WARNING (CWE-476): [#def533]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:249: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  247|   	e->match_ttl = false;
#  248|   	e->match_do = false;
#  249|-> 	e->match_noedns = false;
#  250|   	e->match_serial = false;
#  251|   	e->ixfr_soa_serial = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def534]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:250: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  248|   	e->match_do = false;
#  249|   	e->match_noedns = false;
#  250|-> 	e->match_serial = false;
#  251|   	e->ixfr_soa_serial = 0;
#  252|   	e->match_transport = transport_any;

Error: CPPCHECK_WARNING (CWE-476): [#def535]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:251: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  249|   	e->match_noedns = false;
#  250|   	e->match_serial = false;
#  251|-> 	e->ixfr_soa_serial = 0;
#  252|   	e->match_transport = transport_any;
#  253|   	e->match_udp_size = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def536]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:252: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  250|   	e->match_serial = false;
#  251|   	e->ixfr_soa_serial = 0;
#  252|-> 	e->match_transport = transport_any;
#  253|   	e->match_udp_size = 0;
#  254|   	e->reply_list = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def537]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:253: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  251|   	e->ixfr_soa_serial = 0;
#  252|   	e->match_transport = transport_any;
#  253|-> 	e->match_udp_size = 0;
#  254|   	e->reply_list = NULL;
#  255|   	e->copy_id = false;

Error: CPPCHECK_WARNING (CWE-476): [#def538]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:254: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  252|   	e->match_transport = transport_any;
#  253|   	e->match_udp_size = 0;
#  254|-> 	e->reply_list = NULL;
#  255|   	e->copy_id = false;
#  256|   	e->copy_query = false;

Error: CPPCHECK_WARNING (CWE-476): [#def539]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:255: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  253|   	e->match_udp_size = 0;
#  254|   	e->reply_list = NULL;
#  255|-> 	e->copy_id = false;
#  256|   	e->copy_query = false;
#  257|   	e->sleeptime = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def540]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:256: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  254|   	e->reply_list = NULL;
#  255|   	e->copy_id = false;
#  256|-> 	e->copy_query = false;
#  257|   	e->sleeptime = 0;
#  258|   	e->next = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def541]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:257: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  255|   	e->copy_id = false;
#  256|   	e->copy_query = false;
#  257|-> 	e->sleeptime = 0;
#  258|   	e->next = NULL;
#  259|   	return e;

Error: CPPCHECK_WARNING (CWE-476): [#def542]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:258: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  256|   	e->copy_query = false;
#  257|   	e->sleeptime = 0;
#  258|-> 	e->next = NULL;
#  259|   	return e;
#  260|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def543]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:418:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:576:1: enter_function: entry to 'read_datafile'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:16: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:592:26: call_function: calling 'read_entry' from 'read_datafile'
#  416|   	ldns_status status;
#  417|   
#  418|-> 	ldns_rdf_free(*origin);
#  419|   	*origin = NULL;
#  420|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def544]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:418:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:576:1: enter_function: entry to 'read_datafile'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:592:26: call_function: calling 'read_entry' from 'read_datafile'
#  416|   	ldns_status status;
#  417|   
#  418|-> 	ldns_rdf_free(*origin);
#  419|   	*origin = NULL;
#  420|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def545]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:426:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:576:1: enter_function: entry to 'read_datafile'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:16: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:592:26: call_function: calling 'read_entry' from 'read_datafile'
#  424|   	store = *end;
#  425|   	*end = 0;
#  426|-> 	verbose(3, "parsing '%s'\n", parse);
#  427|   	status = ldns_str2rdf_dname(origin, parse);
#  428|   	*end = store;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def546]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:426:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:576:1: enter_function: entry to 'read_datafile'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:592:26: call_function: calling 'read_entry' from 'read_datafile'
#  424|   	store = *end;
#  425|   	*end = 0;
#  426|-> 	verbose(3, "parsing '%s'\n", parse);
#  427|   	status = ldns_str2rdf_dname(origin, parse);
#  428|   	*end = store;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def547]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:427:18: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:576:1: enter_function: entry to 'read_datafile'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:16: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:592:26: call_function: calling 'read_entry' from 'read_datafile'
#  425|   	*end = 0;
#  426|   	verbose(3, "parsing '%s'\n", parse);
#  427|-> 	status = ldns_str2rdf_dname(origin, parse);
#  428|   	*end = store;
#  429|   	if (status != LDNS_STATUS_OK)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def548]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:427:18: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:576:1: enter_function: entry to 'read_datafile'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:592:26: call_function: calling 'read_entry' from 'read_datafile'
#  425|   	*end = 0;
#  426|   	verbose(3, "parsing '%s'\n", parse);
#  427|-> 	status = ldns_str2rdf_dname(origin, parse);
#  428|   	*end = store;
#  429|   	if (status != LDNS_STATUS_OK)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def549]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:430:17: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:576:1: enter_function: entry to 'read_datafile'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:16: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:592:26: call_function: calling 'read_entry' from 'read_datafile'
#  428|   	*end = store;
#  429|   	if (status != LDNS_STATUS_OK)
#  430|-> 		error("%s line %d:\n\t%s: %s", name, lineno,
#  431|   		ldns_get_errorstr_by_id(status), parse);
#  432|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def550]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:430:17: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(name, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:576:1: enter_function: entry to 'read_datafile'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:588:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:592:26: call_function: calling 'read_entry' from 'read_datafile'
#  428|   	*end = store;
#  429|   	if (status != LDNS_STATUS_OK)
#  430|-> 		error("%s line %d:\n\t%s: %s", name, lineno,
#  431|   		ldns_get_errorstr_by_id(status), parse);
#  432|   }

Error: CPPCHECK_WARNING (CWE-476): [#def551]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-testpkts.c:920: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: outbuf
#  918|   				answer_size = ldns_buffer_capacity(p->reply_from_hex);
#  919|   				outbuf = LDNS_XMALLOC(uint8_t, answer_size);
#  920|-> 				memcpy(outbuf, ldns_buffer_begin(p->reply_from_hex), answer_size);
#  921|   				if(entry->copy_id) {
#  922|   					ldns_write_uint16(outbuf, 

Error: GCC_ANALYZER_WARNING (CWE-401): [#def552]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:35:13: warning[-Wanalyzer-malloc-leak]: leak of 'prog'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:258:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:267:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:282:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:288:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:288:12: branch_false: following 'false' branch (when the strings are non-equal)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:294:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:311:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:313:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:318:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:318:15: call_function: calling 'ldns_update_send_simple_addr' from 'main'
#   33|   
#   34|           /* First, get data from /etc/resolv.conf */
#   35|->         s = ldns_resolver_new_frm_file(&r1, NULL);
#   36|           if (s != LDNS_STATUS_OK) {
#   37|                   return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def553]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:40:14: warning[-Wanalyzer-malloc-leak]: leak of 'prog'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:258:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:267:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:282:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:288:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:288:12: branch_false: following 'false' branch (when the strings are non-equal)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:294:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:311:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:313:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:318:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:318:15: call_function: calling 'ldns_update_send_simple_addr' from 'main'
#   38|           }
#   39|   
#   40|->         r2 = ldns_resolver_new();
#   41|           if (!r2) {
#   42|                   goto bad;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def554]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:44:9: warning[-Wanalyzer-malloc-leak]: leak of 'prog'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:258:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:267:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:282:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:288:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:288:12: branch_false: following 'false' branch (when the strings are non-equal)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:294:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:311:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:313:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:318:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:318:15: call_function: calling 'ldns_update_send_simple_addr' from 'main'
#   42|                   goto bad;
#   43|           }
#   44|->         ldns_resolver_set_port(r2, port);
#   45|   
#   46|           /* TSIG key data available? Copy into the resolver. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def555]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:63:21: warning[-Wanalyzer-malloc-leak]: leak of 'prog'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:258:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:267:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:282:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:288:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:288:12: branch_false: following 'false' branch (when the strings are non-equal)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:294:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:311:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:313:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:318:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:318:15: call_function: calling 'ldns_update_send_simple_addr' from 'main'
#   61|   		}
#   62|           } else {
#   63|->                 if (ldns_update_soa_zone_mname(fqdn, r1, class, &soa_zone,
#   64|                           &soa_mname) != LDNS_STATUS_OK) {
#   65|                           goto bad;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def556]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:70:21: warning[-Wanalyzer-malloc-leak]: leak of 'prog'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:258:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:267:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:282:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:288:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:288:12: branch_false: following 'false' branch (when the strings are non-equal)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:294:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:311:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:313:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:318:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:318:15: call_function: calling 'ldns_update_send_simple_addr' from 'main'
#   68|   
#   69|           /* Pass zone_rdf on upwards. */
#   70|->         *zone_rdf = ldns_rdf_clone(soa_zone);
#   71|   
#   72|           /* NS */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def557]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:73:17: warning[-Wanalyzer-malloc-leak]: leak of 'prog'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:258:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:267:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:282:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:288:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:288:12: branch_false: following 'false' branch (when the strings are non-equal)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:294:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:311:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:313:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:318:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:318:15: call_function: calling 'ldns_update_send_simple_addr' from 'main'
#   71|   
#   72|           /* NS */
#   73|->         query = ldns_pkt_query_new(soa_zone, LDNS_RR_TYPE_NS, class, LDNS_RD);
#   74|           if (!query) {
#   75|                   goto bad;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def558]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:79:9: warning[-Wanalyzer-malloc-leak]: leak of 'prog'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:258:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:267:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:282:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:288:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:288:12: branch_false: following 'false' branch (when the strings are non-equal)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:294:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:311:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:313:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:318:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:318:15: call_function: calling 'ldns_update_send_simple_addr' from 'main'
#   77|           soa_zone = NULL;
#   78|   
#   79|->         ldns_pkt_set_random_id(query);
#   80|   
#   81|           if (ldns_resolver_send_pkt(&resp, r1, query) != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def559]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:81:13: warning[-Wanalyzer-malloc-leak]: leak of 'prog'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:258:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:267:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:282:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:288:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:288:12: branch_false: following 'false' branch (when the strings are non-equal)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:294:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:311:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:313:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:318:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-update.c:318:15: call_function: calling 'ldns_update_send_simple_addr' from 'main'
#   79|           ldns_pkt_set_random_id(query);
#   80|   
#   81|->         if (ldns_resolver_send_pkt(&resp, r1, query) != LDNS_STATUS_OK) {
#   82|                   dprintf("%s", "NS query failed!\n");
#   83|                   goto bad;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def560]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:73:26: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:739:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:762:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:763:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:792:29: call_function: calling 'read_key_file' from 'main'
#   71|   	}
#   72|   	while (!feof(fp)) {
#   73|-> 		status = ldns_rr_new_frm_fp_l(&rr, fp, &my_ttl, &my_origin,
#   74|   				&my_prev, &line_nr);
#   75|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def561]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:73:26: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:739:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:762:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:763:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:792:29: call_function: calling 'read_key_file' from 'main'
#   71|   	}
#   72|   	while (!feof(fp)) {
#   73|-> 		status = ldns_rr_new_frm_fp_l(&rr, fp, &my_ttl, &my_origin,
#   74|   				&my_prev, &line_nr);
#   75|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def562]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:897:13: warning[-Wanalyzer-file-leak]: leak of FILE 'fp'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:879:12: branch_false: following 'false' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:881:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:881:19: branch_true: following 'true' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:882:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:884:22: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:885:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:897:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:897:13: danger: 'fp' leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  895|   	}
#  896|   
#  897|-> 	s = ldns_dnssec_zone_new_frm_fp_l(&dnssec_zone, fp, NULL, 0,
#  898|   			LDNS_RR_CLASS_IN, &line_nr);
#  899|   	if (s != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def563]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:897:13: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:879:12: branch_false: following 'false' branch (when 'argc != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:881:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:881:19: branch_true: following 'true' branch (when 'argc == 1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:882:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:884:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:885:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:897:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-verify-zone.c:897:13: danger: 'fp' leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  895|   	}
#  896|   
#  897|-> 	s = ldns_dnssec_zone_new_frm_fp_l(&dnssec_zone, fp, NULL, 0,
#  898|   			LDNS_RR_CLASS_IN, &line_nr);
#  899|   	if (s != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def564]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:54:17: warning[-Wanalyzer-malloc-leak]: leak of 'wire'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:46:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:47:31: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:47:24: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:48:20: branch_false: following 'false' branch (when 'wire' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:52:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:54:17: danger: 'wire' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   52|   		wire[0] = (uint8_t) 1;
#   53|   		wire[1] = (uint8_t) '\000';
#   54|-> 		memcpy(&wire[2], ldns_rdf_data(dname), ldns_rdf_size(dname));
#   55|   		pos = 0;
#   56|   		status = ldns_wire2dname(&newdname, wire, ldns_rdf_size(dname) + 2, &pos);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def565]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:54:34: warning[-Wanalyzer-malloc-leak]: leak of 'wire'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:46:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:47:31: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:47:24: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:48:20: branch_false: following 'false' branch (when 'wire' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:52:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:54:34: danger: 'wire' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   52|   		wire[0] = (uint8_t) 1;
#   53|   		wire[1] = (uint8_t) '\000';
#   54|-> 		memcpy(&wire[2], ldns_rdf_data(dname), ldns_rdf_size(dname));
#   55|   		pos = 0;
#   56|   		status = ldns_wire2dname(&newdname, wire, ldns_rdf_size(dname) + 2, &pos);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def566]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:56:26: warning[-Wanalyzer-malloc-leak]: leak of 'wire'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:46:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:47:31: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:47:24: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:48:20: branch_false: following 'false' branch (when 'wire' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:52:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:56:26: danger: 'wire' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#   54|   		memcpy(&wire[2], ldns_rdf_data(dname), ldns_rdf_size(dname));
#   55|   		pos = 0;
#   56|-> 		status = ldns_wire2dname(&newdname, wire, ldns_rdf_size(dname) + 2, &pos);
#   57|   		free(wire);
#   58|   	} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def567]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:56:59: warning[-Wanalyzer-malloc-leak]: leak of 'wire'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:46:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:47:31: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:47:24: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:48:20: branch_false: following 'false' branch (when 'wire' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:52:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:56:59: danger: 'wire' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#   54|   		memcpy(&wire[2], ldns_rdf_data(dname), ldns_rdf_size(dname));
#   55|   		pos = 0;
#   56|-> 		status = ldns_wire2dname(&newdname, wire, ldns_rdf_size(dname) + 2, &pos);
#   57|   		free(wire);
#   58|   	} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def568]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:64:48: warning[-Wanalyzer-malloc-leak]: leak of 'wire'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:46:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:59:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:59:24: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:60:20: branch_false: following 'false' branch (when 'wire' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:64:48: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:64:48: danger: 'wire' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#   62|   			exit(127);
#   63|   		}
#   64|-> 		labellen = ldns_rdf_data(dname)[0];
#   65|   		wire[0] = labellen;
#   66|   		memcpy(&wire[1], ldns_rdf_data(dname) + 1, labellen);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def569]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:66:34: warning[-Wanalyzer-malloc-leak]: leak of 'wire'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:46:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:59:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:59:24: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:60:20: branch_false: following 'false' branch (when 'wire' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:64:48: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:66:34: danger: 'wire' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#   64|   		labellen = ldns_rdf_data(dname)[0];
#   65|   		wire[0] = labellen;
#   66|-> 		memcpy(&wire[1], ldns_rdf_data(dname) + 1, labellen);
#   67|   		memcpy(&wire[labellen], ldns_rdf_data(dname) + labellen, ldns_rdf_size(dname) - labellen);
#   68|   		i = labellen;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def570]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:67:41: warning[-Wanalyzer-malloc-leak]: leak of 'wire'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:46:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:59:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:59:24: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:60:20: branch_false: following 'false' branch (when 'wire' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:64:48: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:67:41: danger: 'wire' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#   65|   		wire[0] = labellen;
#   66|   		memcpy(&wire[1], ldns_rdf_data(dname) + 1, labellen);
#   67|-> 		memcpy(&wire[labellen], ldns_rdf_data(dname) + labellen, ldns_rdf_size(dname) - labellen);
#   68|   		i = labellen;
#   69|   		while (wire[i] == 255) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def571]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:67:74: warning[-Wanalyzer-malloc-leak]: leak of 'wire'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:46:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:59:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:59:24: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:60:20: branch_false: following 'false' branch (when 'wire' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:64:48: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:67:74: danger: 'wire' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#   65|   		wire[0] = labellen;
#   66|   		memcpy(&wire[1], ldns_rdf_data(dname) + 1, labellen);
#   67|-> 		memcpy(&wire[labellen], ldns_rdf_data(dname) + labellen, ldns_rdf_size(dname) - labellen);
#   68|   		i = labellen;
#   69|   		while (wire[i] == 255) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def572]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:79:26: warning[-Wanalyzer-malloc-leak]: leak of 'wire'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:46:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:59:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:59:24: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:60:20: branch_false: following 'false' branch (when 'wire' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:64:48: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:79:26: danger: 'wire' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#   77|   		wire[i] = wire[i] + 1;
#   78|   		pos = 0;
#   79|-> 		status = ldns_wire2dname(&newdname, wire, ldns_rdf_size(dname) + 1, &pos);
#   80|   		free(wire);
#   81|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def573]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:79:59: warning[-Wanalyzer-malloc-leak]: leak of 'wire'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:46:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:59:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:59:24: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:60:20: branch_false: following 'false' branch (when 'wire' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:64:48: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-walk.c:79:59: danger: 'wire' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#   77|   		wire[i] = wire[i] + 1;
#   78|   		pos = 0;
#   79|-> 		status = ldns_wire2dname(&newdname, wire, ldns_rdf_size(dname) + 1, &pos);
#   80|   		free(wire);
#   81|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def574]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:60:42: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:58:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:60:42: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   58|   		switch(c) {
#   59|   			case 'o':
#   60|-> 				origin = ldns_dname_new_frm_str(strdup(optarg));
#   61|   				if (!origin) {
#   62|   					fprintf(stderr, "Cannot convert the origin %s to a domainname\n", optarg);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def575]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:61:36: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(optarg)'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:58:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:60:65: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:61:36: danger: 'strdup(optarg)' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   59|   			case 'o':
#   60|   				origin = ldns_dname_new_frm_str(strdup(optarg));
#   61|-> 				if (!origin) {
#   62|   					fprintf(stderr, "Cannot convert the origin %s to a domainname\n", optarg);
#   63|   					exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def576]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:67:33: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:58:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:67:33: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   65|   				break;
#   66|   			case 'v':
#   67|-> 				printf("zone file concatenator version %s (ldns version %s)\n", LDNS_VERSION, ldns_version());
#   68|   				exit(EXIT_SUCCESS);
#   69|   				break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def577]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(*<unknown>, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:28: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: danger: 'fopen(*<unknown>, "r")' leaks here; was opened at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
#   90|   		}
#   91|   		
#   92|-> 		if (ldns_zone_new_frm_fp(&z, fp, origin, 0, 0) != LDNS_STATUS_OK) {
#   93|   			fprintf(stderr, "Zone file %s could not be parsed correctly\n", argv[i]);
#   94|   			exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def578]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(*<unknown>, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:28: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: danger: 'fopen(*<unknown>, "r")' leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
#   90|   		}
#   91|   		
#   92|-> 		if (ldns_zone_new_frm_fp(&z, fp, origin, 0, 0) != LDNS_STATUS_OK) {
#   93|   			fprintf(stderr, "Zone file %s could not be parsed correctly\n", argv[i]);
#   94|   			exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def579]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#   90|   		}
#   91|   		
#   92|-> 		if (ldns_zone_new_frm_fp(&z, fp, origin, 0, 0) != LDNS_STATUS_OK) {
#   93|   			fprintf(stderr, "Zone file %s could not be parsed correctly\n", argv[i]);
#   94|   			exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def580]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#   95|   		}
#   96|   
#   97|-> 		zrr = ldns_zone_rrs(z);
#   98|   		soa = ldns_zone_soa(z); /* SOA is stored separately */
#   99|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def581]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:98:23: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:98:23: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#   96|   
#   97|   		zrr = ldns_zone_rrs(z);
#   98|-> 		soa = ldns_zone_soa(z); /* SOA is stored separately */
#   99|   
#  100|   		fprintf(stderr, "%s\n", argv[i]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def582]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_true: following 'true' branch (when 'i == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  104|   
#  105|   			/* remove the last equal named RRs */
#  106|-> 			last_rr = ldns_rr_list_pop_rr(zrr);
#  107|   			last_owner = ldns_rr_owner(last_rr);
#  108|   			/* remove until no match */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def583]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:107:38: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_true: following 'true' branch (when 'i == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:107:38: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  105|   			/* remove the last equal named RRs */
#  106|   			last_rr = ldns_rr_list_pop_rr(zrr);
#  107|-> 			last_owner = ldns_rr_owner(last_rr);
#  108|   			/* remove until no match */
#  109|   			do {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def584]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:110:42: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_true: following 'true' branch (when 'i == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:110:42: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  108|   			/* remove until no match */
#  109|   			do {
#  110|-> 				pop_rr = ldns_rr_list_pop_rr(zrr);
#  111|   			} while(ldns_rdf_compare(last_owner, ldns_rr_owner(pop_rr)) == 0) ;
#  112|   			/* we popped one to many, put it back */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def585]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:111:33: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_true: following 'true' branch (when 'i == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:111:33: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  109|   			do {
#  110|   				pop_rr = ldns_rr_list_pop_rr(zrr);
#  111|-> 			} while(ldns_rdf_compare(last_owner, ldns_rr_owner(pop_rr)) == 0) ;
#  112|   			/* we popped one to many, put it back */
#  113|   			ldns_rr_list_push_rr(zrr, pop_rr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def586]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:111:62: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_true: following 'true' branch (when 'i == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:111:62: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  109|   			do {
#  110|   				pop_rr = ldns_rr_list_pop_rr(zrr);
#  111|-> 			} while(ldns_rdf_compare(last_owner, ldns_rr_owner(pop_rr)) == 0) ;
#  112|   			/* we popped one to many, put it back */
#  113|   			ldns_rr_list_push_rr(zrr, pop_rr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def587]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:113:25: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_true: following 'true' branch (when 'i == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:113:25: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  111|   			} while(ldns_rdf_compare(last_owner, ldns_rr_owner(pop_rr)) == 0) ;
#  112|   			/* we popped one to many, put it back */
#  113|-> 			ldns_rr_list_push_rr(zrr, pop_rr);
#  114|   		} else if ((size_t)(argc - 1) == i) {
#  115|   			where = LAST_ZONE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def588]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:120:35: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_true: following 'true' branch (when 'i == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_false: following 'false' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:114:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:114:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:120:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:120:35: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  118|   
#  119|   			/* remove the last equal named RRs */
#  120|-> 			last_rr = ldns_rr_list_pop_rr(zrr);
#  121|   			last_owner = ldns_rr_owner(last_rr);
#  122|   			/* remove until no match */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def589]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:121:38: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_true: following 'true' branch (when 'i == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_false: following 'false' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:114:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:114:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:120:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:121:38: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  119|   			/* remove the last equal named RRs */
#  120|   			last_rr = ldns_rr_list_pop_rr(zrr);
#  121|-> 			last_owner = ldns_rr_owner(last_rr);
#  122|   			/* remove until no match */
#  123|   			do {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def590]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:124:42: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_true: following 'true' branch (when 'i == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_false: following 'false' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:114:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:114:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:120:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:124:42: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  122|   			/* remove until no match */
#  123|   			do {
#  124|-> 				pop_rr = ldns_rr_list_pop_rr(zrr);
#  125|   			} while(ldns_rdf_compare(last_owner, ldns_rr_owner(pop_rr)) == 0) ;
#  126|   			/* we popped one to many, put it back */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def591]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:125:33: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_true: following 'true' branch (when 'i == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_false: following 'false' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:114:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:114:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:120:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:125:33: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  123|   			do {
#  124|   				pop_rr = ldns_rr_list_pop_rr(zrr);
#  125|-> 			} while(ldns_rdf_compare(last_owner, ldns_rr_owner(pop_rr)) == 0) ;
#  126|   			/* we popped one to many, put it back */
#  127|   			ldns_rr_list_push_rr(zrr, pop_rr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def592]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:125:62: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_true: following 'true' branch (when 'i == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_false: following 'false' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:114:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:114:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:120:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:125:62: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  123|   			do {
#  124|   				pop_rr = ldns_rr_list_pop_rr(zrr);
#  125|-> 			} while(ldns_rdf_compare(last_owner, ldns_rr_owner(pop_rr)) == 0) ;
#  126|   			/* we popped one to many, put it back */
#  127|   			ldns_rr_list_push_rr(zrr, pop_rr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def593]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:127:25: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_true: following 'true' branch (when 'i == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_false: following 'false' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:114:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:114:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:120:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:127:25: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  125|   			} while(ldns_rdf_compare(last_owner, ldns_rr_owner(pop_rr)) == 0) ;
#  126|   			/* we popped one to many, put it back */
#  127|-> 			ldns_rr_list_push_rr(zrr, pop_rr);
#  128|   		}
#  129|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def594]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:131:33: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_true: following 'true' branch (when 'i == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:131:33: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#  129|   
#  130|   		/* printing the RRs */
#  131|-> 		for (j = 0; j < ldns_rr_list_rr_count(zrr); j++) {
#  132|   
#  133|   			current_rr = ldns_rr_list_rr(zrr, j);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def595]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:133:38: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_true: following 'true' branch (when 'i == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:131:29: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:133:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:133:38: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  131|   		for (j = 0; j < ldns_rr_list_rr_count(zrr); j++) {
#  132|   
#  133|-> 			current_rr = ldns_rr_list_rr(zrr, j);
#  134|   		
#  135|   			switch(where) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def596]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:138:49: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_true: following 'true' branch (when 'i == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:131:29: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:133:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:137:44: branch_true: following 'true' branch (when 'soa' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:138:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:138:49: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
#  136|   				case FIRST_ZONE:
#  137|   					if (soa) {
#  138|-> 						ldns_rr_print(stdout, soa);
#  139|   						soa = NULL;
#  140|   					}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def597]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:167:25: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:54:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:57:16: branch_false: following 'false' branch (when 'c == -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:77:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:80:12: branch_false: following 'false' branch (when 'argc > 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:85:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:87:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:92:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:97:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:102:20: branch_true: following 'true' branch (when 'i == 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:106:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:131:29: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:133:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zcat.c:167:25: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
#  165|   					break;
#  166|   			}
#  167|-> 			ldns_rr_print(stdout, current_rr);
#  168|   		}
#  169|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def598]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:57:19: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(*argv, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:104:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:135:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:136:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:139:36: branch_false: following 'false' branch (when 'split != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:164:12: branch_false: following 'false' branch (when 'split != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:168:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:171:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:43: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:19: call_function: calling 'open_keyfiles' from 'main'
#   55|   	FILE *kfp;
#   56|   
#   57|->  	pubkeys = ldns_rr_list_new();
#   58|   	
#   59|   	for (i = 0; i < filec; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def599]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:57:19: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(*argv, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:104:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:135:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:136:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:139:36: branch_false: following 'false' branch (when 'split != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:164:12: branch_false: following 'false' branch (when 'split != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:168:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:171:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:43: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:19: call_function: calling 'open_keyfiles' from 'main'
#   55|   	FILE *kfp;
#   56|   
#   57|->  	pubkeys = ldns_rr_list_new();
#   58|   	
#   59|   	for (i = 0; i < filec; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def600]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:57:19: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:104:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:126:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:135:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:136:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:139:36: branch_false: following 'false' branch (when 'split != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:164:12: branch_false: following 'false' branch (when 'split != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:168:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:171:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:43: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:19: call_function: calling 'open_keyfiles' from 'main'
#   55|   	FILE *kfp;
#   56|   
#   57|->  	pubkeys = ldns_rr_list_new();
#   58|   	
#   59|   	for (i = 0; i < filec; i++) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def601]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:64:21: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(*<unknown>, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:59:21: branch_true: following 'true' branch (when 'i < filec')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:60:40: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:60:29: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:60:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:64:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:64:21: danger: 'fopen(*<unknown>, "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#   62|   			return NULL;
#   63|   		}
#   64|-> 		if (ldns_rr_new_frm_fp(&k, kfp, NULL, NULL, NULL) != LDNS_STATUS_OK) {
#   65|   			fprintf(stderr, "Error parsing the key file %s: %s\n", files[i], strerror(errno));
#   66|   			ldns_rr_list_deep_free(pubkeys);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def602]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:64:21: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(*argv, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:104:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:135:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:136:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:139:36: branch_false: following 'false' branch (when 'split != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:164:12: branch_false: following 'false' branch (when 'split != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:168:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:171:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:43: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:19: call_function: calling 'open_keyfiles' from 'main'
#   62|   			return NULL;
#   63|   		}
#   64|-> 		if (ldns_rr_new_frm_fp(&k, kfp, NULL, NULL, NULL) != LDNS_STATUS_OK) {
#   65|   			fprintf(stderr, "Error parsing the key file %s: %s\n", files[i], strerror(errno));
#   66|   			ldns_rr_list_deep_free(pubkeys);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def603]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:64:21: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(*<unknown>, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:59:21: branch_true: following 'true' branch (when 'i < filec')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:60:40: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:60:29: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:60:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:64:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:64:21: danger: 'fopen(*<unknown>, "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#   62|   			return NULL;
#   63|   		}
#   64|-> 		if (ldns_rr_new_frm_fp(&k, kfp, NULL, NULL, NULL) != LDNS_STATUS_OK) {
#   65|   			fprintf(stderr, "Error parsing the key file %s: %s\n", files[i], strerror(errno));
#   66|   			ldns_rr_list_deep_free(pubkeys);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def604]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:64:21: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(*argv, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:104:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:135:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:136:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:139:36: branch_false: following 'false' branch (when 'split != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:164:12: branch_false: following 'false' branch (when 'split != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:168:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:171:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:43: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:19: call_function: calling 'open_keyfiles' from 'main'
#   62|   			return NULL;
#   63|   		}
#   64|-> 		if (ldns_rr_new_frm_fp(&k, kfp, NULL, NULL, NULL) != LDNS_STATUS_OK) {
#   65|   			fprintf(stderr, "Error parsing the key file %s: %s\n", files[i], strerror(errno));
#   66|   			ldns_rr_list_deep_free(pubkeys);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def605]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:64:21: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:104:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:126:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:135:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:136:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:139:36: branch_false: following 'false' branch (when 'split != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:164:12: branch_false: following 'false' branch (when 'split != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:168:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:171:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:43: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:19: call_function: calling 'open_keyfiles' from 'main'
#   62|   			return NULL;
#   63|   		}
#   64|-> 		if (ldns_rr_new_frm_fp(&k, kfp, NULL, NULL, NULL) != LDNS_STATUS_OK) {
#   65|   			fprintf(stderr, "Error parsing the key file %s: %s\n", files[i], strerror(errno));
#   66|   			ldns_rr_list_deep_free(pubkeys);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def606]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:66:25: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(*argv, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:104:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:135:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:136:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:139:36: branch_false: following 'false' branch (when 'split != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:164:12: branch_false: following 'false' branch (when 'split != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:168:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:171:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:43: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:19: call_function: calling 'open_keyfiles' from 'main'
#   64|   		if (ldns_rr_new_frm_fp(&k, kfp, NULL, NULL, NULL) != LDNS_STATUS_OK) {
#   65|   			fprintf(stderr, "Error parsing the key file %s: %s\n", files[i], strerror(errno));
#   66|-> 			ldns_rr_list_deep_free(pubkeys);
#   67|   			return NULL;
#   68|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def607]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:66:25: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(*argv, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:104:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:135:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:136:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:139:36: branch_false: following 'false' branch (when 'split != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:164:12: branch_false: following 'false' branch (when 'split != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:168:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:171:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:43: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:19: call_function: calling 'open_keyfiles' from 'main'
#   64|   		if (ldns_rr_new_frm_fp(&k, kfp, NULL, NULL, NULL) != LDNS_STATUS_OK) {
#   65|   			fprintf(stderr, "Error parsing the key file %s: %s\n", files[i], strerror(errno));
#   66|-> 			ldns_rr_list_deep_free(pubkeys);
#   67|   			return NULL;
#   68|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def608]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:66:25: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:104:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:126:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:135:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:136:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:139:36: branch_false: following 'false' branch (when 'split != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:164:12: branch_false: following 'false' branch (when 'split != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:168:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:171:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:43: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:19: call_function: calling 'open_keyfiles' from 'main'
#   64|   		if (ldns_rr_new_frm_fp(&k, kfp, NULL, NULL, NULL) != LDNS_STATUS_OK) {
#   65|   			fprintf(stderr, "Error parsing the key file %s: %s\n", files[i], strerror(errno));
#   66|-> 			ldns_rr_list_deep_free(pubkeys);
#   67|   			return NULL;
#   68|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def609]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:70:17: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(*argv, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:104:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:135:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:136:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:139:36: branch_false: following 'false' branch (when 'split != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:164:12: branch_false: following 'false' branch (when 'split != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:168:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:171:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:43: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:19: call_function: calling 'open_keyfiles' from 'main'
#   68|   		}
#   69|   		fclose(kfp);
#   70|-> 		ldns_rr_list_push_rr(pubkeys, k);
#   71|   	}
#   72|   	return pubkeys;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def610]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:70:17: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(*argv, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:104:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:135:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:136:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:139:36: branch_false: following 'false' branch (when 'split != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:164:12: branch_false: following 'false' branch (when 'split != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:168:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:171:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:43: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:19: call_function: calling 'open_keyfiles' from 'main'
#   68|   		}
#   69|   		fclose(kfp);
#   70|-> 		ldns_rr_list_push_rr(pubkeys, k);
#   71|   	}
#   72|   	return pubkeys;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def611]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:70:17: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:104:1: enter_function: entry to 'main'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:126:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:135:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:136:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:139:36: branch_false: following 'false' branch (when 'split != 0')...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:164:12: branch_false: following 'false' branch (when 'split != 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:168:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:171:12: branch_false: following 'false' branch (when 'argc > 0')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:176:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:43: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:182:19: call_function: calling 'open_keyfiles' from 'main'
#   68|   		}
#   69|   		fclose(kfp);
#   70|-> 		ldns_rr_list_push_rr(pubkeys, k);
#   71|   	}
#   72|   	return pubkeys;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def612]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:95:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&filename, "w")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:82:12: branch_false: following 'false' branch (when 'counter <= 999')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:87:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:89:20: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:89:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:93:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:95:9: danger: 'fopen(&filename, "w")' leaks here; was opened at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
#   93|   		fprintf(stderr, "%s\n", filename);
#   94|   	}
#   95|-> 	ldns_rr_print(fp, ldns_zone_soa(z));
#   96|   	if (keys) {
#   97|   		ldns_rr_list_print(fp, keys);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def613]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:95:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&filename, "w")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:82:12: branch_false: following 'false' branch (when 'counter <= 999')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:87:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:89:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:89:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:93:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:95:9: danger: 'fopen(&filename, "w")' leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
#   93|   		fprintf(stderr, "%s\n", filename);
#   94|   	}
#   95|-> 	ldns_rr_print(fp, ldns_zone_soa(z));
#   96|   	if (keys) {
#   97|   		ldns_rr_list_print(fp, keys);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def614]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:95:27: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&filename, "w")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:82:12: branch_false: following 'false' branch (when 'counter <= 999')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:87:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:89:20: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:89:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:93:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:95:27: danger: 'fopen(&filename, "w")' leaks here; was opened at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
#   93|   		fprintf(stderr, "%s\n", filename);
#   94|   	}
#   95|-> 	ldns_rr_print(fp, ldns_zone_soa(z));
#   96|   	if (keys) {
#   97|   		ldns_rr_list_print(fp, keys);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def615]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:95:27: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&filename, "w")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:82:12: branch_false: following 'false' branch (when 'counter <= 999')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:87:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:89:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:89:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:93:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:95:27: danger: 'fopen(&filename, "w")' leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
#   93|   		fprintf(stderr, "%s\n", filename);
#   94|   	}
#   95|-> 	ldns_rr_print(fp, ldns_zone_soa(z));
#   96|   	if (keys) {
#   97|   		ldns_rr_list_print(fp, keys);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def616]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:132:22: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:126:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:132:22: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  130|   	lastname = NULL;
#  131|   	origin = NULL;
#  132|-> 	last_rrset = ldns_rr_list_new();
#  133|   	sort = false;
#  134|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def617]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:145:42: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:126:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:135:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:136:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:145:42: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  143|   				break;
#  144|   			case 'o':
#  145|-> 				origin = ldns_dname_new_frm_str(strdup(optarg));
#  146|   				if (!origin) {
#  147|   					fprintf(stderr, "Cannot convert the origin %s to a domainname\n", optarg);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def618]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:146:36: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(optarg)'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:135:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:136:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:145:65: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:146:36: danger: 'strdup(optarg)' leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
#  144|   			case 'o':
#  145|   				origin = ldns_dname_new_frm_str(strdup(optarg));
#  146|-> 				if (!origin) {
#  147|   					fprintf(stderr, "Cannot convert the origin %s to a domainname\n", optarg);
#  148|   					exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def619]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:152:33: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:126:20: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:135:16: branch_true: following 'true' branch (when 'c != -1')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:136:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldns-zsplit.c:152:33: danger: 'progname' leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  150|   				break;
#  151|   			case 'v':
#  152|-> 				printf("zone file splitter version %s (ldns version %s)\n", LDNS_VERSION, ldns_version());
#  153|   				exit(EXIT_SUCCESS);
#  154|   				break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def620]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:154:18: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(zone_file, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:128:12: branch_false: following 'false' branch (when 'argc > 4')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:132:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:134:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:138:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:138:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:143:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:147:19: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:148:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:153:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:154:18: danger: 'fopen(zone_file, "r")' leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  152|   	
#  153|   	line_nr = 0;
#  154|-> 	status = ldns_zone_new_frm_fp_l(&zone, zone_fp, origin, 0, LDNS_RR_CLASS_IN, &line_nr);
#  155|   
#  156|   	if (status != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def621]
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:154:18: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(zone_file, "r")'
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:128:12: branch_false: following 'false' branch (when 'argc > 4')...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:132:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:134:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:138:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:138:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:143:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:147:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:148:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:153:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/examples/ldnsd.c:154:18: danger: 'fopen(zone_file, "r")' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  152|   	
#  153|   	line_nr = 0;
#  154|-> 	status = ldns_zone_new_frm_fp_l(&zone, zone_fp, origin, 0, LDNS_RR_CLASS_IN, &line_nr);
#  155|   
#  156|   	if (status != LDNS_STATUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def622]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:167:16: warning[-Wanalyzer-file-leak]: leak of FILE 'fp'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  165|   	rr_str = LDNS_XMALLOC(char, LDNS_MAX_LINELEN + 1);
#  166|   	ip6 = false;
#  167|-> 	list = ldns_rr_list_new();
#  168|   	rr = NULL;
#  169|   	if(!line || !word || !addr || !rr_str || !list) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def623]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:167:16: warning[-Wanalyzer-malloc-leak]: leak of 'addr'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  165|   	rr_str = LDNS_XMALLOC(char, LDNS_MAX_LINELEN + 1);
#  166|   	ip6 = false;
#  167|-> 	list = ldns_rr_list_new();
#  168|   	rr = NULL;
#  169|   	if(!line || !word || !addr || !rr_str || !list) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def624]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:167:16: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  165|   	rr_str = LDNS_XMALLOC(char, LDNS_MAX_LINELEN + 1);
#  166|   	ip6 = false;
#  167|-> 	list = ldns_rr_list_new();
#  168|   	rr = NULL;
#  169|   	if(!line || !word || !addr || !rr_str || !list) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def625]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:167:16: warning[-Wanalyzer-malloc-leak]: leak of 'line'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  165|   	rr_str = LDNS_XMALLOC(char, LDNS_MAX_LINELEN + 1);
#  166|   	ip6 = false;
#  167|-> 	list = ldns_rr_list_new();
#  168|   	rr = NULL;
#  169|   	if(!line || !word || !addr || !rr_str || !list) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def626]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:167:16: warning[-Wanalyzer-malloc-leak]: leak of 'rr_str'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  165|   	rr_str = LDNS_XMALLOC(char, LDNS_MAX_LINELEN + 1);
#  166|   	ip6 = false;
#  167|-> 	list = ldns_rr_list_new();
#  168|   	rr = NULL;
#  169|   	if(!line || !word || !addr || !rr_str || !list) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def627]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:167:16: warning[-Wanalyzer-malloc-leak]: leak of 'word'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  165|   	rr_str = LDNS_XMALLOC(char, LDNS_MAX_LINELEN + 1);
#  166|   	ip6 = false;
#  167|-> 	list = ldns_rr_list_new();
#  168|   	rr = NULL;
#  169|   	if(!line || !word || !addr || !rr_str || !list) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def628]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:174:17: warning[-Wanalyzer-file-leak]: leak of FILE 'fp'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  172|   		LDNS_FREE(addr);
#  173|   		LDNS_FREE(rr_str);
#  174|-> 		ldns_rr_list_free(list);
#  175|   		return NULL;
#  176|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def629]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:174:17: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  172|   		LDNS_FREE(addr);
#  173|   		LDNS_FREE(rr_str);
#  174|-> 		ldns_rr_list_free(list);
#  175|   		return NULL;
#  176|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def630]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:178:17: warning[-Wanalyzer-file-leak]: leak of FILE 'fp'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  176|   	}
#  177|   
#  178|-> 	for(i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr);
#  179|   			i > 0; i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr)) {
#  180|   		/* # is comment */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def631]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:178:17: warning[-Wanalyzer-malloc-leak]: leak of 'addr'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  176|   	}
#  177|   
#  178|-> 	for(i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr);
#  179|   			i > 0; i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr)) {
#  180|   		/* # is comment */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def632]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:178:17: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  176|   	}
#  177|   
#  178|-> 	for(i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr);
#  179|   			i > 0; i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr)) {
#  180|   		/* # is comment */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def633]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:178:17: warning[-Wanalyzer-malloc-leak]: leak of 'line'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  176|   	}
#  177|   
#  178|-> 	for(i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr);
#  179|   			i > 0; i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr)) {
#  180|   		/* # is comment */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def634]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:178:17: warning[-Wanalyzer-malloc-leak]: leak of 'rr_str'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  176|   	}
#  177|   
#  178|-> 	for(i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr);
#  179|   			i > 0; i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr)) {
#  180|   		/* # is comment */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def635]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:178:17: warning[-Wanalyzer-malloc-leak]: leak of 'word'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  176|   	}
#  177|   
#  178|-> 	for(i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr);
#  179|   			i > 0; i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr)) {
#  180|   		/* # is comment */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def636]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:179:36: warning[-Wanalyzer-malloc-leak]: leak of 'addr'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  177|   
#  178|   	for(i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr);
#  179|-> 			i > 0; i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr)) {
#  180|   		/* # is comment */
#  181|   		if (line[0] == '#') {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def637]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:179:36: warning[-Wanalyzer-malloc-leak]: leak of 'rr_str'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  177|   
#  178|   	for(i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr);
#  179|-> 			i > 0; i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr)) {
#  180|   		/* # is comment */
#  181|   		if (line[0] == '#') {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def638]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:179:36: warning[-Wanalyzer-malloc-leak]: leak of 'word'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  177|   
#  178|   	for(i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr);
#  179|-> 			i > 0; i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr)) {
#  180|   		/* # is comment */
#  181|   		if (line[0] == '#') {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def639]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:195:17: warning[-Wanalyzer-malloc-leak]: leak of 'addr'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  193|   		}
#  194|   
#  195|-> 		ldns_buffer_new_frm_data(linebuf, line, (size_t) i);
#  196|   		for(cnt = 0, j = ldns_bget_token(linebuf, word, LDNS_PARSE_NO_NL, LDNS_MAX_LINELEN);
#  197|   				j > 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def640]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:195:17: warning[-Wanalyzer-malloc-leak]: leak of 'linebuf'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  193|   		}
#  194|   
#  195|-> 		ldns_buffer_new_frm_data(linebuf, line, (size_t) i);
#  196|   		for(cnt = 0, j = ldns_bget_token(linebuf, word, LDNS_PARSE_NO_NL, LDNS_MAX_LINELEN);
#  197|   				j > 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def641]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:195:17: warning[-Wanalyzer-malloc-leak]: leak of 'rr_str'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  193|   		}
#  194|   
#  195|-> 		ldns_buffer_new_frm_data(linebuf, line, (size_t) i);
#  196|   		for(cnt = 0, j = ldns_bget_token(linebuf, word, LDNS_PARSE_NO_NL, LDNS_MAX_LINELEN);
#  197|   				j > 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def642]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:195:17: warning[-Wanalyzer-malloc-leak]: leak of 'word'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  193|   		}
#  194|   
#  195|-> 		ldns_buffer_new_frm_data(linebuf, line, (size_t) i);
#  196|   		for(cnt = 0, j = ldns_bget_token(linebuf, word, LDNS_PARSE_NO_NL, LDNS_MAX_LINELEN);
#  197|   				j > 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def643]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:196:34: warning[-Wanalyzer-malloc-leak]: leak of 'addr'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  194|   
#  195|   		ldns_buffer_new_frm_data(linebuf, line, (size_t) i);
#  196|-> 		for(cnt = 0, j = ldns_bget_token(linebuf, word, LDNS_PARSE_NO_NL, LDNS_MAX_LINELEN);
#  197|   				j > 0;
#  198|   				j = ldns_bget_token(linebuf, word, LDNS_PARSE_NO_NL, LDNS_MAX_LINELEN), cnt++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def644]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:196:34: warning[-Wanalyzer-malloc-leak]: leak of 'rr_str'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  194|   
#  195|   		ldns_buffer_new_frm_data(linebuf, line, (size_t) i);
#  196|-> 		for(cnt = 0, j = ldns_bget_token(linebuf, word, LDNS_PARSE_NO_NL, LDNS_MAX_LINELEN);
#  197|   				j > 0;
#  198|   				j = ldns_bget_token(linebuf, word, LDNS_PARSE_NO_NL, LDNS_MAX_LINELEN), cnt++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def645]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:196:34: warning[-Wanalyzer-malloc-leak]: leak of 'word'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  194|   
#  195|   		ldns_buffer_new_frm_data(linebuf, line, (size_t) i);
#  196|-> 		for(cnt = 0, j = ldns_bget_token(linebuf, word, LDNS_PARSE_NO_NL, LDNS_MAX_LINELEN);
#  197|   				j > 0;
#  198|   				j = ldns_bget_token(linebuf, word, LDNS_PARSE_NO_NL, LDNS_MAX_LINELEN), cnt++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def646]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:198:37: warning[-Wanalyzer-malloc-leak]: leak of 'rr_str'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  196|   		for(cnt = 0, j = ldns_bget_token(linebuf, word, LDNS_PARSE_NO_NL, LDNS_MAX_LINELEN);
#  197|   				j > 0;
#  198|-> 				j = ldns_bget_token(linebuf, word, LDNS_PARSE_NO_NL, LDNS_MAX_LINELEN), cnt++) {
#  199|   			if (cnt == 0) {
#  200|   				/* the address */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def647]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:201:44: warning[-Wanalyzer-malloc-leak]: leak of 'addr'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  199|   			if (cnt == 0) {
#  200|   				/* the address */
#  201|-> 				if ((tmp = ldns_rdf_new_frm_str(LDNS_RDF_TYPE_AAAA, 
#  202|   								word))) {
#  203|   					/* ip6 */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def648]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:201:44: warning[-Wanalyzer-malloc-leak]: leak of 'rr_str'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  199|   			if (cnt == 0) {
#  200|   				/* the address */
#  201|-> 				if ((tmp = ldns_rdf_new_frm_str(LDNS_RDF_TYPE_AAAA, 
#  202|   								word))) {
#  203|   					/* ip6 */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def649]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:204:41: warning[-Wanalyzer-malloc-leak]: leak of 'addr'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  202|   								word))) {
#  203|   					/* ip6 */
#  204|-> 					ldns_rdf_deep_free(tmp);
#  205|   					ip6 = true;
#  206|   				} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def650]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:204:41: warning[-Wanalyzer-malloc-leak]: leak of 'rr_str'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  202|   								word))) {
#  203|   					/* ip6 */
#  204|-> 					ldns_rdf_deep_free(tmp);
#  205|   					ip6 = true;
#  206|   				} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def651]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:207:52: warning[-Wanalyzer-malloc-leak]: leak of 'addr'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  205|   					ip6 = true;
#  206|   				} else {
#  207|-> 					if ((tmp = ldns_rdf_new_frm_str(LDNS_RDF_TYPE_A, 
#  208|   									word))) {
#  209|   						/* ip4 */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def652]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:207:52: warning[-Wanalyzer-malloc-leak]: leak of 'rr_str'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  205|   					ip6 = true;
#  206|   				} else {
#  207|-> 					if ((tmp = ldns_rdf_new_frm_str(LDNS_RDF_TYPE_A, 
#  208|   									word))) {
#  209|   						/* ip4 */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def653]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:210:49: warning[-Wanalyzer-malloc-leak]: leak of 'addr'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  208|   									word))) {
#  209|   						/* ip4 */
#  210|-> 						ldns_rdf_deep_free(tmp);
#  211|   						ip6 = false;
#  212|   					} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def654]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:210:49: warning[-Wanalyzer-malloc-leak]: leak of 'rr_str'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  208|   									word))) {
#  209|   						/* ip4 */
#  210|-> 						ldns_rdf_deep_free(tmp);
#  211|   						ip6 = false;
#  212|   					} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def655]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:237:17: warning[-Wanalyzer-malloc-leak]: leak of 'addr'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  235|   			}
#  236|   		}
#  237|-> 		ldns_buffer_free(linebuf);
#  238|   	}
#  239|   	LDNS_FREE(line);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def656]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:237:17: warning[-Wanalyzer-malloc-leak]: leak of 'rr_str'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:247:1: enter_function: entry to 'ldns_get_rr_list_hosts_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:252:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:253:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:258:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:262:17: call_function: calling 'ldns_get_rr_list_hosts_frm_fp' from 'ldns_get_rr_list_hosts_frm_file'
#  235|   			}
#  236|   		}
#  237|-> 		ldns_buffer_free(linebuf);
#  238|   	}
#  239|   	LDNS_FREE(line);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def657]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:337:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:333:9: acquire_resource: 'va_start' called here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:335:37: branch_true: following 'true' branch (when 'rdf != -1')...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:337:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:337:22: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
#  335|   	for (rdf = (int16_t)rdfnum; rdf != -1; rdf = (int16_t)va_arg(va_rdf, int)) 
#  336|   	{
#  337|-> 		rd = ldns_rr_rdf(r, rdf);
#  338|   		if (!rd) {
#  339|   			continue;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def658]
ldns-1.8.4/ldns-1.8.4_python3/higher.c:341:25: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ldns-1.8.4/ldns-1.8.4_python3/higher.c:333:9: acquire_resource: 'va_start' called here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:335:37: branch_true: following 'true' branch (when 'rdf != -1')...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:337:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:338:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/higher.c:341:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/higher.c:341:25: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
#  339|   			continue;
#  340|   		} else {
#  341|-> 			ldns_rdf_print(fp, rd);
#  342|   			fprintf(fp, " "); /* not sure if we want to do this */
#  343|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def659]
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:501:13: warning[-Wanalyzer-malloc-leak]: leak of 'b64'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3460:1: enter_function: entry to 'ldns_resolver_print_fmt'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3491:9: call_function: calling 'ldns_rr_list_print_fmt' from 'ldns_resolver_print_fmt'
#  499|   		return LDNS_STATUS_MEM_ERR;
#  500|   
#  501|-> 	if (ldns_b64_ntop(ldns_rdf_data(rdf), ldns_rdf_size(rdf), b64, size)) {
#  502|   		ldns_buffer_printf(output, "%s", b64);
#  503|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def660]
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:501:27: warning[-Wanalyzer-malloc-leak]: leak of 'b64'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3460:1: enter_function: entry to 'ldns_resolver_print_fmt'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3491:9: call_function: calling 'ldns_rr_list_print_fmt' from 'ldns_resolver_print_fmt'
#  499|   		return LDNS_STATUS_MEM_ERR;
#  500|   
#  501|-> 	if (ldns_b64_ntop(ldns_rdf_data(rdf), ldns_rdf_size(rdf), b64, size)) {
#  502|   		ldns_buffer_printf(output, "%s", b64);
#  503|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def661]
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:520:25: warning[-Wanalyzer-malloc-leak]: leak of 'b32'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3460:1: enter_function: entry to 'ldns_resolver_print_fmt'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3491:9: call_function: calling 'ldns_rr_list_print_fmt' from 'ldns_resolver_print_fmt'
#  518|   	b32 = LDNS_XMALLOC(char, size + 1);
#  519|   	if(!b32) return LDNS_STATUS_MEM_ERR;
#  520|-> 	size = (size_t) ldns_b32_ntop_extended_hex(ldns_rdf_data(rdf) + 1,
#  521|   		ldns_rdf_size(rdf) - 1, b32, size+1);
#  522|   	if (size > 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def662]
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:520:52: warning[-Wanalyzer-malloc-leak]: leak of 'b32'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3460:1: enter_function: entry to 'ldns_resolver_print_fmt'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3491:9: call_function: calling 'ldns_rr_list_print_fmt' from 'ldns_resolver_print_fmt'
#  518|   	b32 = LDNS_XMALLOC(char, size + 1);
#  519|   	if(!b32) return LDNS_STATUS_MEM_ERR;
#  520|-> 	size = (size_t) ldns_b32_ntop_extended_hex(ldns_rdf_data(rdf) + 1,
#  521|   		ldns_rdf_size(rdf) - 1, b32, size+1);
#  522|   	if (size > 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def663]
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:521:17: warning[-Wanalyzer-malloc-leak]: leak of 'b32'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3460:1: enter_function: entry to 'ldns_resolver_print_fmt'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3491:9: call_function: calling 'ldns_rr_list_print_fmt' from 'ldns_resolver_print_fmt'
#  519|   	if(!b32) return LDNS_STATUS_MEM_ERR;
#  520|   	size = (size_t) ldns_b32_ntop_extended_hex(ldns_rdf_data(rdf) + 1,
#  521|-> 		ldns_rdf_size(rdf) - 1, b32, size+1);
#  522|   	if (size > 0) {
#  523|   		ldns_buffer_printf(output, "%s", b32);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def664]
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:1065:21: warning[-Wanalyzer-malloc-leak]: leak of 'b64'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3460:1: enter_function: entry to 'ldns_resolver_print_fmt'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3491:9: call_function: calling 'ldns_rr_list_print_fmt' from 'ldns_resolver_print_fmt'
# 1063|   			return LDNS_STATUS_MEM_ERR;
# 1064|   
# 1065|-> 		if (ldns_rdf_size(rdf) > 2 &&
# 1066|   		ldns_b64_ntop(ldns_rdf_data(rdf) + 2,
# 1067|   					ldns_rdf_size(rdf) - 2,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def665]
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:1066:17: warning[-Wanalyzer-malloc-leak]: leak of 'b64'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3460:1: enter_function: entry to 'ldns_resolver_print_fmt'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3491:9: call_function: calling 'ldns_rr_list_print_fmt' from 'ldns_resolver_print_fmt'
# 1064|   
# 1065|   		if (ldns_rdf_size(rdf) > 2 &&
# 1066|-> 		ldns_b64_ntop(ldns_rdf_data(rdf) + 2,
# 1067|   					ldns_rdf_size(rdf) - 2,
# 1068|   					b64, size)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def666]
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:1066:31: warning[-Wanalyzer-malloc-leak]: leak of 'b64'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3460:1: enter_function: entry to 'ldns_resolver_print_fmt'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3491:9: call_function: calling 'ldns_rr_list_print_fmt' from 'ldns_resolver_print_fmt'
# 1064|   
# 1065|   		if (ldns_rdf_size(rdf) > 2 &&
# 1066|-> 		ldns_b64_ntop(ldns_rdf_data(rdf) + 2,
# 1067|   					ldns_rdf_size(rdf) - 2,
# 1068|   					b64, size)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def667]
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:1067:41: warning[-Wanalyzer-malloc-leak]: leak of 'b64'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3460:1: enter_function: entry to 'ldns_resolver_print_fmt'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3491:9: call_function: calling 'ldns_rr_list_print_fmt' from 'ldns_resolver_print_fmt'
# 1065|   		if (ldns_rdf_size(rdf) > 2 &&
# 1066|   		ldns_b64_ntop(ldns_rdf_data(rdf) + 2,
# 1067|-> 					ldns_rdf_size(rdf) - 2,
# 1068|   					b64, size)) {
# 1069|   			ldns_buffer_printf(output, "%s", b64);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def668]
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:1117:35: warning[-Wanalyzer-malloc-leak]: leak of 'gateway_data'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3460:1: enter_function: entry to 'ldns_resolver_print_fmt'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3491:9: call_function: calling 'ldns_rr_list_print_fmt' from 'ldns_resolver_print_fmt'
# 1115|                                   return LDNS_STATUS_MEM_ERR;
# 1116|   			memcpy(gateway_data, &data[offset], LDNS_IP4ADDRLEN);
# 1117|-> 			gateway = ldns_rdf_new(LDNS_RDF_TYPE_A,
# 1118|   					LDNS_IP4ADDRLEN , gateway_data);
# 1119|   			offset += LDNS_IP4ADDRLEN;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def669]
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:1135:33: warning[-Wanalyzer-malloc-leak]: leak of 'gateway_data'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3460:1: enter_function: entry to 'ldns_resolver_print_fmt'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3491:9: call_function: calling 'ldns_rr_list_print_fmt' from 'ldns_resolver_print_fmt'
# 1133|   			offset += LDNS_IP6ADDRLEN;
# 1134|   			gateway =
# 1135|-> 				ldns_rdf_new(LDNS_RDF_TYPE_AAAA,
# 1136|   						LDNS_IP6ADDRLEN, gateway_data);
# 1137|                           if(!gateway) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def670]
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:1164:22: warning[-Wanalyzer-malloc-leak]: leak of 'public_key_data'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3460:1: enter_function: entry to 'ldns_resolver_print_fmt'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3491:9: call_function: calling 'ldns_rr_list_print_fmt' from 'ldns_resolver_print_fmt'
# 1162|           }
# 1163|   	memcpy(public_key_data, &data[offset], public_key_size);
# 1164|-> 	public_key = ldns_rdf_new(LDNS_RDF_TYPE_B64,
# 1165|   			public_key_size, public_key_data);
# 1166|           if(!public_key) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def671]
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:1345:33: warning[-Wanalyzer-malloc-leak]: leak of 'relay_data'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3460:1: enter_function: entry to 'ldns_resolver_print_fmt'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3491:9: call_function: calling 'ldns_rr_list_print_fmt' from 'ldns_resolver_print_fmt'
# 1343|                                   return LDNS_STATUS_MEM_ERR;
# 1344|   			memcpy(relay_data, &data[offset], LDNS_IP4ADDRLEN);
# 1345|-> 			relay = ldns_rdf_new(LDNS_RDF_TYPE_A,
# 1346|   					LDNS_IP4ADDRLEN , relay_data);
# 1347|   			offset += LDNS_IP4ADDRLEN;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def672]
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:1363:33: warning[-Wanalyzer-malloc-leak]: leak of 'relay_data'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3460:1: enter_function: entry to 'ldns_resolver_print_fmt'
ldns-1.8.4/ldns-1.8.4_python3/host2str.c:3491:9: call_function: calling 'ldns_rr_list_print_fmt' from 'ldns_resolver_print_fmt'
# 1361|   			offset += LDNS_IP6ADDRLEN;
# 1362|   			relay =
# 1363|-> 				ldns_rdf_new(LDNS_RDF_TYPE_AAAA,
# 1364|   						LDNS_IP6ADDRLEN, relay_data);
# 1365|                           if(!relay) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def673]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:350:13: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:690:25: call_function: calling 'ldns_key_new_frm_fp_ed25519_l' from 'ldns_key_new_frm_fp_l'
#  348|           ldns_rdf* b64rdf = NULL;
#  349|           EVP_PKEY* evp_key;
#  350|-> 	if (ldns_fget_keyword_data_l(fp, "PrivateKey", ": ", token, "\n",
#  351|   		sizeof(token), line_nr) == -1)
#  352|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def674]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:353:12: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:690:25: call_function: calling 'ldns_key_new_frm_fp_ed25519_l' from 'ldns_key_new_frm_fp_l'
#  351|   		sizeof(token), line_nr) == -1)
#  352|   		return NULL;
#  353|-> 	if(ldns_str2rdf_b64(&b64rdf, token) != LDNS_STATUS_OK)
#  354|   		return NULL;
#  355|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def675]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:362:19: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:690:25: call_function: calling 'ldns_key_new_frm_fp_ed25519_l' from 'ldns_key_new_frm_fp_l'
#  360|   	 * with a ED25519 prefix on it */
#  361|   
#  362|-> 	evp_key = ldns_ed25519_priv_raw(ldns_rdf_data(b64rdf),
#  363|   		(int)ldns_rdf_size(b64rdf));
#  364|   	ldns_rdf_deep_free(b64rdf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def676]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:363:22: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:690:25: call_function: calling 'ldns_key_new_frm_fp_ed25519_l' from 'ldns_key_new_frm_fp_l'
#  361|   
#  362|   	evp_key = ldns_ed25519_priv_raw(ldns_rdf_data(b64rdf),
#  363|-> 		(int)ldns_rdf_size(b64rdf));
#  364|   	ldns_rdf_deep_free(b64rdf);
#  365|           return evp_key;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def677]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: warning[-Wanalyzer-malloc-leak]: leak of 'd'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:434:13: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: danger: 'd' leaks here; was allocated at [(12)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/11)
#  448|   	 */
#  449|   	/* get the key format version number */
#  450|-> 	if (ldns_fget_keyword_data_l(fp, "Private-key-format", ": ", d, "\n",
#  451|   				LDNS_MAX_LINELEN, line_nr) == -1) {
#  452|   		/* no version information */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def678]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/3)
#  448|   	 */
#  449|   	/* get the key format version number */
#  450|-> 	if (ldns_fget_keyword_data_l(fp, "Private-key-format", ": ", d, "\n",
#  451|   				LDNS_MAX_LINELEN, line_nr) == -1) {
#  452|   		/* no version information */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def679]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/3)
#  463|   	/* get the algorithm type, our file function strip ( ) so there are
#  464|   	 * not in the return string! */
#  465|-> 	if (ldns_fget_keyword_data_l(fp, "Algorithm", ": ", d, "\n",
#  466|   				LDNS_MAX_LINELEN, line_nr) == -1) {
#  467|   		/* no alg information */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def680]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:718:9: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:647:32: call_function: calling 'ldns_key_new_frm_fp_hmac_l' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:647:32: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new_frm_fp_hmac_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:648:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:652:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:717:18: call_function: calling 'ldns_key2rr' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:717:18: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key2rr'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:718:9: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/3)
#  716|   	}
#  717|   	key_rr = ldns_key2rr(k);
#  718|-> 	ldns_key_set_keytag(k, ldns_calc_keytag(key_rr));
#  719|   	ldns_rr_free(key_rr);
#  720|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def681]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:773:15: warning[-Wanalyzer-malloc-leak]: leak of 'b'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:771:13: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:773:15: danger: 'b' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  771|   	b = LDNS_XMALLOC(char, LDNS_MAX_LINELEN);
#  772|   	buf = LDNS_XMALLOC(uint8_t, LDNS_MAX_LINELEN);
#  773|-> 	rsa = RSA_new();
#  774|   	if (!b || !rsa || !buf) {
#  775|                   goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def682]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:773:15: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:772:15: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:773:15: danger: 'buf' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  771|   	b = LDNS_XMALLOC(char, LDNS_MAX_LINELEN);
#  772|   	buf = LDNS_XMALLOC(uint8_t, LDNS_MAX_LINELEN);
#  773|-> 	rsa = RSA_new();
#  774|   	if (!b || !rsa || !buf) {
#  775|                   goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def683]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:773:15: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:617:31: call_function: calling 'ldns_key_new_frm_fp_rsa_l' from 'ldns_key_new_frm_fp_l'
#  771|   	b = LDNS_XMALLOC(char, LDNS_MAX_LINELEN);
#  772|   	buf = LDNS_XMALLOC(uint8_t, LDNS_MAX_LINELEN);
#  773|-> 	rsa = RSA_new();
#  774|   	if (!b || !rsa || !buf) {
#  775|                   goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def684]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:783:13: warning[-Wanalyzer-malloc-leak]: leak of 'b'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:771:13: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:774:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:783:13: danger: 'b' leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  781|   
#  782|   	/* Modules, rsa->n */
#  783|-> 	if (ldns_fget_keyword_data_l(f, "Modulus", ": ", b, "\n", LDNS_MAX_LINELEN, line_nr) == -1) {
#  784|   		goto error;
#  785|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def685]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:783:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:772:15: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:774:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:774:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:774:13: branch_false: following 'false' branch (when 'buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:783:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:783:13: danger: 'buf' leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  781|   
#  782|   	/* Modules, rsa->n */
#  783|-> 	if (ldns_fget_keyword_data_l(f, "Modulus", ": ", b, "\n", LDNS_MAX_LINELEN, line_nr) == -1) {
#  784|   		goto error;
#  785|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def686]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:783:13: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:617:31: call_function: calling 'ldns_key_new_frm_fp_rsa_l' from 'ldns_key_new_frm_fp_l'
#  781|   
#  782|   	/* Modules, rsa->n */
#  783|-> 	if (ldns_fget_keyword_data_l(f, "Modulus", ": ", b, "\n", LDNS_MAX_LINELEN, line_nr) == -1) {
#  784|   		goto error;
#  785|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def687]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:786:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:772:15: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:774:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:774:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:774:13: branch_false: following 'false' branch (when 'buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:783:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:783:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:786:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:786:13: danger: 'buf' leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  784|   		goto error;
#  785|   	}
#  786|-> 	i = ldns_b64_pton((const char*)b, buf, ldns_b64_ntop_calculate_size(strlen(b)));
#  787|   #ifndef S_SPLINT_S
#  788|   	n = BN_bin2bn((const char unsigned*)buf, i, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def688]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:786:13: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:617:31: call_function: calling 'ldns_key_new_frm_fp_rsa_l' from 'ldns_key_new_frm_fp_l'
#  784|   		goto error;
#  785|   	}
#  786|-> 	i = ldns_b64_pton((const char*)b, buf, ldns_b64_ntop_calculate_size(strlen(b)));
#  787|   #ifndef S_SPLINT_S
#  788|   	n = BN_bin2bn((const char unsigned*)buf, i, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def689]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:788:13: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:617:31: call_function: calling 'ldns_key_new_frm_fp_rsa_l' from 'ldns_key_new_frm_fp_l'
#  786|   	i = ldns_b64_pton((const char*)b, buf, ldns_b64_ntop_calculate_size(strlen(b)));
#  787|   #ifndef S_SPLINT_S
#  788|-> 	n = BN_bin2bn((const char unsigned*)buf, i, NULL);
#  789|   	if (!n) {
#  790|   		goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def690]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:794:13: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:617:31: call_function: calling 'ldns_key_new_frm_fp_rsa_l' from 'ldns_key_new_frm_fp_l'
#  792|   
#  793|   	/* PublicExponent, rsa->e */
#  794|-> 	if (ldns_fget_keyword_data_l(f, "PublicExponent", ": ", b, "\n", LDNS_MAX_LINELEN, line_nr) == -1) {
#  795|   		goto error;
#  796|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def691]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:797:13: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:617:31: call_function: calling 'ldns_key_new_frm_fp_rsa_l' from 'ldns_key_new_frm_fp_l'
#  795|   		goto error;
#  796|   	}
#  797|-> 	i = ldns_b64_pton((const char*)b, buf, ldns_b64_ntop_calculate_size(strlen(b)));
#  798|   	e = BN_bin2bn((const char unsigned*)buf, i, NULL);
#  799|   	if (!e) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def692]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:798:13: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:617:31: call_function: calling 'ldns_key_new_frm_fp_rsa_l' from 'ldns_key_new_frm_fp_l'
#  796|   	}
#  797|   	i = ldns_b64_pton((const char*)b, buf, ldns_b64_ntop_calculate_size(strlen(b)));
#  798|-> 	e = BN_bin2bn((const char unsigned*)buf, i, NULL);
#  799|   	if (!e) {
#  800|   		goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def693]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:804:13: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:617:31: call_function: calling 'ldns_key_new_frm_fp_rsa_l' from 'ldns_key_new_frm_fp_l'
#  802|   
#  803|   	/* PrivateExponent, rsa->d */
#  804|-> 	if (ldns_fget_keyword_data_l(f, "PrivateExponent", ": ", b, "\n", LDNS_MAX_LINELEN, line_nr) == -1) {
#  805|   		goto error;
#  806|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def694]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:926:15: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:925:15: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:926:15: danger: 'buf' leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  924|   	d = LDNS_XMALLOC(char, LDNS_MAX_LINELEN);
#  925|   	buf = LDNS_XMALLOC(uint8_t, LDNS_MAX_LINELEN);
#  926|-> 	dsa = DSA_new();
#  927|   	if (!d || !dsa || !buf) {
#  928|                   goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def695]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:926:15: warning[-Wanalyzer-malloc-leak]: leak of 'd'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:924:13: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:926:15: danger: 'd' leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
#  924|   	d = LDNS_XMALLOC(char, LDNS_MAX_LINELEN);
#  925|   	buf = LDNS_XMALLOC(uint8_t, LDNS_MAX_LINELEN);
#  926|-> 	dsa = DSA_new();
#  927|   	if (!d || !dsa || !buf) {
#  928|                   goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def696]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:934:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:925:15: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:927:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:927:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:927:13: branch_false: following 'false' branch (when 'buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:934:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:934:13: danger: 'buf' leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
#  932|   
#  933|   	/* Prime, dsa->p */
#  934|-> 	if (ldns_fget_keyword_data_l(f, "Primep", ": ", d, "\n", LDNS_MAX_LINELEN, line_nr) == -1) {
#  935|   		goto error;
#  936|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def697]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:934:13: warning[-Wanalyzer-malloc-leak]: leak of 'd'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:924:13: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:927:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:934:13: danger: 'd' leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
#  932|   
#  933|   	/* Prime, dsa->p */
#  934|-> 	if (ldns_fget_keyword_data_l(f, "Primep", ": ", d, "\n", LDNS_MAX_LINELEN, line_nr) == -1) {
#  935|   		goto error;
#  936|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def698]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:937:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:925:15: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:927:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:927:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:927:13: branch_false: following 'false' branch (when 'buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:934:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:934:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:937:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:937:13: danger: 'buf' leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
#  935|   		goto error;
#  936|   	}
#  937|-> 	i = ldns_b64_pton((const char*)d, buf, ldns_b64_ntop_calculate_size(strlen(d)));
#  938|   #ifndef S_SPLINT_S
#  939|   	p = BN_bin2bn((const char unsigned*)buf, i, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def699]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1037:22: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:647:32: call_function: calling 'ldns_key_new_frm_fp_hmac_l' from 'ldns_key_new_frm_fp_l'
# 1035|   	unsigned char *buf = NULL;
# 1036|   
# 1037|-> 	*hmac_size = ldns_fget_keyword_data_l(f, "Key", ": ", d, "\n",
# 1038|   	                                      LDNS_MAX_LINELEN, line_nr) == -1
# 1039|   	           ? 0

Error: GCC_ANALYZER_WARNING (CWE-401): [#def700]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1043:31: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1037:22: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1040:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1040:29: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1037:22: branch_true: following 'true' branch (when 'buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1043:31: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1043:31: danger: 'buf' leaks here; was allocated at [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2)
# 1041|   	                    ldns_b64_ntop_calculate_size(strlen(d))))) == NULL
# 1042|   		   ? 0
# 1043|-> 	           : (size_t) ldns_b64_pton((const char*)d, buf, bufsz);
# 1044|   	return buf;
# 1045|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def701]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1043:31: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:647:32: call_function: calling 'ldns_key_new_frm_fp_hmac_l' from 'ldns_key_new_frm_fp_l'
# 1041|   	                    ldns_b64_ntop_calculate_size(strlen(d))))) == NULL
# 1042|   		   ? 0
# 1043|-> 	           : (size_t) ldns_b64_pton((const char*)d, buf, bufsz);
# 1044|   	return buf;
# 1045|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def702]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1116:31: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1116:31: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/3)
# 1114|   #ifdef HAVE_SSL
# 1115|   #ifdef HAVE_EVP_PKEY_KEYGEN
# 1116|-> 			ctx = EVP_PKEY_CTX_new_id(EVP_PKEY_RSA, NULL);
# 1117|   			if(!ctx) {
# 1118|   				ldns_key_free(k);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def703]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1121:28: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1117:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1121:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1121:28: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/3)
# 1119|   				return NULL;
# 1120|   			}
# 1121|-> 			if(EVP_PKEY_keygen_init(ctx) <= 0) {
# 1122|   				ldns_key_free(k);
# 1123|   				EVP_PKEY_CTX_free(ctx);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def704]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1126:29: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1117:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1121:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1121:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1126:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1126:29: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/3)
# 1124|   				return NULL;
# 1125|   			}
# 1126|-> 			if (EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, size) <= 0) {
# 1127|   				ldns_key_free(k);
# 1128|   				EVP_PKEY_CTX_free(ctx);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def705]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1132:29: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1117:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1121:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1121:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1126:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1126:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1132:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1132:29: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/3)
# 1130|   			}
# 1131|   #ifndef S_SPLINT_S
# 1132|-> 			if (EVP_PKEY_keygen(ctx, &k->_key.key) <= 0) {
# 1133|   				ldns_key_free(k);
# 1134|   				EVP_PKEY_CTX_free(ctx);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def706]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1166:36: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1166:36: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/3)
# 1164|   
# 1165|   # else
# 1166|-> 			if (! (d = DSA_new())) {
# 1167|   				ldns_key_free(k);
# 1168|   				return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def707]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1170:31: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1166:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1170:31: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1170:31: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/3)
# 1168|   				return NULL;
# 1169|   			}
# 1170|-> 			if (! DSA_generate_parameters_ex(d, (int)size, NULL, 0, NULL, NULL, NULL)) {
# 1171|   				DSA_free(d);
# 1172|   				ldns_key_free(k);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def708]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1171:33: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1166:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1170:31: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1170:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1171:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1171:33: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/3)
# 1169|   			}
# 1170|   			if (! DSA_generate_parameters_ex(d, (int)size, NULL, 0, NULL, NULL, NULL)) {
# 1171|-> 				DSA_free(d);
# 1172|   				ldns_key_free(k);
# 1173|   				return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def709]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1176:29: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1166:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1170:31: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1170:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1176:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1176:29: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/3)
# 1174|   			}
# 1175|   # endif
# 1176|-> 			if (DSA_generate_key(d) != 1) {
# 1177|   				ldns_key_free(k);
# 1178|   				return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def710]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1181:25: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1166:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1170:31: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1170:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1176:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1176:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1180:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1181:25: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/3)
# 1179|   			}
# 1180|   			ldns_key_set_dsa_key(k, d);
# 1181|-> 			DSA_free(d);
# 1182|   #endif /* HAVE_SSL */
# 1183|   #endif /* USE_DSA */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def711]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1205:29: warning[-Wanalyzer-malloc-leak]: leak of 'hmac'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1199:32: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1200:27: branch_false: following 'false' branch (when 'hmac' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1205:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1205:29: danger: 'hmac' leaks here; was allocated at [(16)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/15)
# 1203|                           }
# 1204|   #ifdef HAVE_SSL
# 1205|-> 			if (RAND_bytes(hmac, (int) size) != 1) {
# 1206|   				LDNS_FREE(hmac);
# 1207|   				ldns_key_free(k);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def712]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1205:29: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1200:27: branch_false: following 'false' branch (when 'hmac' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1205:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1205:29: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/3)
# 1203|                           }
# 1204|   #ifdef HAVE_SSL
# 1205|-> 			if (RAND_bytes(hmac, (int) size) != 1) {
# 1206|   				LDNS_FREE(hmac);
# 1207|   				ldns_key_free(k);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def713]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1243:38: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1242:27: branch_true: following 'true' branch (when 'alg == 13')...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1243:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1243:38: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/3)
# 1241|   #ifdef USE_ECDSA
# 1242|                           if(alg == LDNS_SIGN_ECDSAP256SHA256)
# 1243|->                                 ec = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
# 1244|                           else if(alg == LDNS_SIGN_ECDSAP384SHA384)
# 1245|                                   ec = EC_KEY_new_by_curve_name(NID_secp384r1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def714]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1245:38: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1242:27: branch_false: following 'false' branch (when 'alg != 13')...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1245:38: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1245:38: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/3)
# 1243|                                   ec = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
# 1244|                           else if(alg == LDNS_SIGN_ECDSAP384SHA384)
# 1245|->                                 ec = EC_KEY_new_by_curve_name(NID_secp384r1);
# 1246|                           if(!ec) {
# 1247|                                   ldns_key_free(k);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def715]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1250:29: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1246:27: branch_false: following 'false' branch (when 'ec' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1250:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1250:29: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/3)
# 1248|                                   return NULL;
# 1249|                           }
# 1250|->                         if(!EC_KEY_generate_key(ec)) {
# 1251|                                   ldns_key_free(k);
# 1252|                                   EC_KEY_free(ec);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def716]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1256:39: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1246:27: branch_false: following 'false' branch (when 'ec' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1250:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1250:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1256:39: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1256:39: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/3)
# 1254|                           }
# 1255|   #ifndef S_SPLINT_S
# 1256|->                         k->_key.key = EVP_PKEY_new();
# 1257|                           if(!k->_key.key) {
# 1258|                                   ldns_key_free(k);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def717]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1276:31: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1276:31: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/3)
# 1274|   		case LDNS_SIGN_ED25519:
# 1275|   #ifdef HAVE_EVP_PKEY_KEYGEN
# 1276|-> 			ctx = EVP_PKEY_CTX_new_id(NID_ED25519, NULL);
# 1277|   			if(!ctx) {
# 1278|   				ldns_key_free(k);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def718]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1281:28: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1277:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1281:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1281:28: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/3)
# 1279|   				return NULL;
# 1280|   			}
# 1281|-> 			if(EVP_PKEY_keygen_init(ctx) <= 0) {
# 1282|   				ldns_key_free(k);
# 1283|   				EVP_PKEY_CTX_free(ctx);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def719]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1286:29: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1277:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1281:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1281:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1286:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1286:29: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/3)
# 1284|   				return NULL;
# 1285|   			}
# 1286|-> 			if (EVP_PKEY_keygen(ctx, &k->_key.key) <= 0) {
# 1287|   				ldns_key_free(k);
# 1288|   				EVP_PKEY_CTX_free(ctx);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def720]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1298:31: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1298:31: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/3)
# 1296|   		case LDNS_SIGN_ED448:
# 1297|   #ifdef HAVE_EVP_PKEY_KEYGEN
# 1298|-> 			ctx = EVP_PKEY_CTX_new_id(NID_ED448, NULL);
# 1299|   			if(!ctx) {
# 1300|   				ldns_key_free(k);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def721]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1303:28: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1299:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1303:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1303:28: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/3)
# 1301|   				return NULL;
# 1302|   			}
# 1303|-> 			if(EVP_PKEY_keygen_init(ctx) <= 0) {
# 1304|   				ldns_key_free(k);
# 1305|   				EVP_PKEY_CTX_free(ctx);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def722]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1308:29: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1299:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1303:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1303:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1308:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1308:29: danger: 'ldns_key_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/3)
# 1306|   				return NULL;
# 1307|   			}
# 1308|-> 			if (EVP_PKEY_keygen(ctx, &k->_key.key) <= 0) {
# 1309|   				ldns_key_free(k);
# 1310|   				EVP_PKEY_CTX_free(ctx);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def723]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1367:25: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1166:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1170:31: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1170:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1176:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1176:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1180:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1180:25: call_function: calling 'ldns_key_set_dsa_key' from 'ldns_key_new_frm_algorithm'
# 1365|   {
# 1366|   #ifdef USE_DSA
# 1367|-> 	EVP_PKEY *key = EVP_PKEY_new();
# 1368|   	EVP_PKEY_set1_DSA(key, d);
# 1369|   	k->_key.key  = key;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def724]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1368:9: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1083:1: enter_function: entry to 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_algorithm'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1104:13: return_function: returning to 'ldns_key_new_frm_algorithm' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1105:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1108:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1166:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1170:31: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1170:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1176:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1176:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1180:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1180:25: call_function: calling 'ldns_key_set_dsa_key' from 'ldns_key_new_frm_algorithm'
# 1366|   #ifdef USE_DSA
# 1367|   	EVP_PKEY *key = EVP_PKEY_new();
# 1368|-> 	EVP_PKEY_set1_DSA(key, d);
# 1369|   	k->_key.key  = key;
# 1370|   #else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def725]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1667:9: warning[-Wanalyzer-malloc-leak]: leak of 'bin'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1803:1: enter_function: entry to 'ldns_key2rr'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1825:12: branch_false: following 'false' branch (when 'k' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1828:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1865:32: call_function: calling 'ldns_key_rsa_key' from 'ldns_key2rr'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1865:32: return_function: returning to 'ldns_key2rr' from 'ldns_key_rsa_key'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1866:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1867:39: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1867:39: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1868:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1872:38: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1872:38: call_function: calling 'ldns_key_rsa2bin' from 'ldns_key2rr'
# 1665|   	e = k->e;
# 1666|   #else
# 1667|-> 	RSA_get0_key(k, &n, &e, NULL);
# 1668|   #endif
# 1669|   	

Error: GCC_ANALYZER_WARNING (CWE-401): [#def726]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1675:21: warning[-Wanalyzer-malloc-leak]: leak of 'bin'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1803:1: enter_function: entry to 'ldns_key2rr'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1825:12: branch_false: following 'false' branch (when 'k' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1828:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1865:32: call_function: calling 'ldns_key_rsa_key' from 'ldns_key2rr'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1865:32: return_function: returning to 'ldns_key2rr' from 'ldns_key_rsa_key'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1866:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1867:39: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1867:39: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1868:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1872:38: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1872:38: call_function: calling 'ldns_key_rsa2bin' from 'ldns_key2rr'
# 1673|   		 */
# 1674|   		data[0] = (unsigned char) BN_num_bytes(e);
# 1675|-> 		i = BN_bn2bin(e, data + 1);  
# 1676|   		j = BN_bn2bin(n, data + i + 1);
# 1677|   		*size = (uint16_t) i + j;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def727]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1683:17: warning[-Wanalyzer-malloc-leak]: leak of 'bin'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1803:1: enter_function: entry to 'ldns_key2rr'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1825:12: branch_false: following 'false' branch (when 'k' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1828:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1865:32: call_function: calling 'ldns_key_rsa_key' from 'ldns_key2rr'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1865:32: return_function: returning to 'ldns_key2rr' from 'ldns_key_rsa_key'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1866:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1867:39: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1867:39: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1868:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1872:38: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1872:38: call_function: calling 'ldns_key_rsa2bin' from 'ldns_key2rr'
# 1681|   		ldns_write_uint16(data + 1, (uint16_t) BN_num_bytes(e)); 
# 1682|   
# 1683|-> 		BN_bn2bin(e, data + 3); 
# 1684|   		BN_bn2bin(n, data + 4 + BN_num_bytes(e));
# 1685|   		*size = (uint16_t) BN_num_bytes(n) + 6;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def728]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1707:9: warning[-Wanalyzer-malloc-leak]: leak of 'bin'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1803:1: enter_function: entry to 'ldns_key2rr'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1825:12: branch_false: following 'false' branch (when 'k' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1828:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1888:31: call_function: calling 'ldns_key_dsa_key' from 'ldns_key2rr'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1888:31: return_function: returning to 'ldns_key2rr' from 'ldns_key_dsa_key'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1889:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1890:39: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1890:39: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1891:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1895:38: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1895:38: call_function: calling 'ldns_key_dsa2bin' from 'ldns_key2rr'
# 1705|   	/* See RFC2536 */
# 1706|   # ifdef HAVE_DSA_GET0_PQG
# 1707|-> 	DSA_get0_pqg(k, &p, &q, &g);
# 1708|   # else
# 1709|   	p = k->p; q = k->q; g = k->g;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def729]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1712:9: warning[-Wanalyzer-malloc-leak]: leak of 'bin'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1803:1: enter_function: entry to 'ldns_key2rr'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1825:12: branch_false: following 'false' branch (when 'k' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1828:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1888:31: call_function: calling 'ldns_key_dsa_key' from 'ldns_key2rr'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1888:31: return_function: returning to 'ldns_key2rr' from 'ldns_key_dsa_key'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1889:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1890:39: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1890:39: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1891:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1895:38: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1895:38: call_function: calling 'ldns_key_dsa2bin' from 'ldns_key2rr'
# 1710|   # endif
# 1711|   # ifdef HAVE_DSA_GET0_KEY
# 1712|-> 	DSA_get0_key(k, &pub_key, &priv_key);
# 1713|   # else
# 1714|   	pub_key = k->pub_key; priv_key = k->priv_key;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def730]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1731:9: warning[-Wanalyzer-malloc-leak]: leak of 'bin'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1803:1: enter_function: entry to 'ldns_key2rr'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1825:12: branch_false: following 'false' branch (when 'k' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1828:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1888:31: call_function: calling 'ldns_key_dsa_key' from 'ldns_key2rr'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1888:31: return_function: returning to 'ldns_key2rr' from 'ldns_key_dsa_key'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1889:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1890:39: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1890:39: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1891:36: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1895:38: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1895:38: call_function: calling 'ldns_key_dsa2bin' from 'ldns_key2rr'
# 1729|   	memset(data, 0, 21 + *size * 3);
# 1730|   	data[0] = (unsigned char)T;
# 1731|-> 	BN_bn2bin(q, data + 1 ); 		/* 20 octects */
# 1732|   	BN_bn2bin(p, data + 21 ); 		/* offset octects */
# 1733|   	BN_bn2bin(g, data + 21 + *size * 2 - BN_num_bytes(g));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def731]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1766:12: warning[-Wanalyzer-malloc-leak]: leak of 'bin'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1803:1: enter_function: entry to 'ldns_key2rr'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1825:12: branch_false: following 'false' branch (when 'k' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1828:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1989:31: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1990:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1994:56: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1994:30: call_function: calling 'ldns_key_ed255192bin' from 'ldns_key2rr'
# 1764|   	int i;
# 1765|   	unsigned char* pp = NULL;
# 1766|-> 	if(i2d_PUBKEY(k, &pp) != 12 + 32) {
# 1767|   		/* expect 12 byte(ASN header) and 32 byte(pubkey) */
# 1768|   		free(pp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def732]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1786:12: warning[-Wanalyzer-malloc-leak]: leak of 'bin'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1803:1: enter_function: entry to 'ldns_key2rr'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1825:12: branch_false: following 'false' branch (when 'k' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1828:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2006:31: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2007:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2011:54: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2011:30: call_function: calling 'ldns_key_ed4482bin' from 'ldns_key2rr'
# 1784|   	int i;
# 1785|   	unsigned char* pp = NULL;
# 1786|-> 	if(i2d_PUBKEY(k, &pp) != 12 + 57) {
# 1787|   		/* expect 12 byte(ASN header) and 57 byte(pubkey) */
# 1788|   		free(pp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def733]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1828:18: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:647:32: call_function: calling 'ldns_key_new_frm_fp_hmac_l' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:647:32: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new_frm_fp_hmac_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:648:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:652:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:717:18: call_function: calling 'ldns_key2rr' from 'ldns_key_new_frm_fp_l'
# 1826|   		return NULL;
# 1827|   	}
# 1828|-> 	pubkey = ldns_rr_new();
# 1829|   
# 1830|   	switch (ldns_key_algorithm(k)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def734]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1837:17: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:647:32: call_function: calling 'ldns_key_new_frm_fp_hmac_l' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:647:32: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new_frm_fp_hmac_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:648:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:652:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:717:18: call_function: calling 'ldns_key2rr' from 'ldns_key_new_frm_fp_l'
# 1835|   	case LDNS_SIGN_HMACSHA384:
# 1836|   	case LDNS_SIGN_HMACSHA512:
# 1837|-> 		ldns_rr_set_type(pubkey, LDNS_RR_TYPE_KEY);
# 1838|           	break;
# 1839|   	default:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def735]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1844:9: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:647:32: call_function: calling 'ldns_key_new_frm_fp_hmac_l' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:647:32: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new_frm_fp_hmac_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:648:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:652:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:717:18: call_function: calling 'ldns_key2rr' from 'ldns_key_new_frm_fp_l'
# 1842|           }
# 1843|   	/* zero-th rdf - flags */
# 1844|-> 	ldns_rr_push_rdf(pubkey,
# 1845|   			ldns_native2rdf_int16(LDNS_RDF_TYPE_INT16,
# 1846|   				ldns_key_flags(k)));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def736]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1845:25: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:647:32: call_function: calling 'ldns_key_new_frm_fp_hmac_l' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:647:32: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new_frm_fp_hmac_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:648:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:652:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:717:18: call_function: calling 'ldns_key2rr' from 'ldns_key_new_frm_fp_l'
# 1843|   	/* zero-th rdf - flags */
# 1844|   	ldns_rr_push_rdf(pubkey,
# 1845|-> 			ldns_native2rdf_int16(LDNS_RDF_TYPE_INT16,
# 1846|   				ldns_key_flags(k)));
# 1847|   	/* first - proto */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def737]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1848:9: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:647:32: call_function: calling 'ldns_key_new_frm_fp_hmac_l' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:647:32: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new_frm_fp_hmac_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:648:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:652:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:717:18: call_function: calling 'ldns_key2rr' from 'ldns_key_new_frm_fp_l'
# 1846|   				ldns_key_flags(k)));
# 1847|   	/* first - proto */
# 1848|-> 	ldns_rr_push_rdf(pubkey,
# 1849|   			ldns_native2rdf_int8(LDNS_RDF_TYPE_INT8, LDNS_DNSSEC_KEYPROTO));
# 1850|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def738]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1849:25: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_key_new()'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:417:1: enter_function: entry to 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: call_function: calling 'ldns_key_new' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:432:13: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:435:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:450:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:457:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:465:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:473:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:647:32: call_function: calling 'ldns_key_new_frm_fp_hmac_l' from 'ldns_key_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:647:32: return_function: returning to 'ldns_key_new_frm_fp_l' from 'ldns_key_new_frm_fp_hmac_l'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:648:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:652:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:717:18: call_function: calling 'ldns_key2rr' from 'ldns_key_new_frm_fp_l'
# 1847|   	/* first - proto */
# 1848|   	ldns_rr_push_rdf(pubkey,
# 1849|-> 			ldns_native2rdf_int8(LDNS_RDF_TYPE_INT8, LDNS_DNSSEC_KEYPROTO));
# 1850|   
# 1851|   	if (ldns_key_pubkey_owner(k)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def739]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2030:25: warning[-Wanalyzer-malloc-leak]: leak of 'bin'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1825:12: branch_false: following 'false' branch (when 'k' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1828:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2025:31: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2026:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2032:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2030:25: danger: 'bin' leaks here; was allocated at [(5)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/4)
# 2028|   				return NULL;
# 2029|   			}
# 2030|-> 			ldns_rr_push_rdf(pubkey,
# 2031|   			                 ldns_native2rdf_int8(LDNS_RDF_TYPE_ALG,
# 2032|   			                 ldns_key_algorithm(k)));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def740]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2031:42: warning[-Wanalyzer-malloc-leak]: leak of 'bin'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1825:12: branch_false: following 'false' branch (when 'k' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1828:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2025:31: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2026:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2032:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2031:42: danger: 'bin' leaks here; was allocated at [(5)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/4)
# 2029|   			}
# 2030|   			ldns_rr_push_rdf(pubkey,
# 2031|-> 			                 ldns_native2rdf_int8(LDNS_RDF_TYPE_ALG,
# 2032|   			                 ldns_key_algorithm(k)));
# 2033|   			size = ldns_key_hmac_size(k);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def741]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2040:26: warning[-Wanalyzer-malloc-leak]: leak of 'bin'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1825:12: branch_false: following 'false' branch (when 'k' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:1828:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2025:31: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2026:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2032:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2040:26: danger: 'bin' leaks here; was allocated at [(5)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/4)
# 2038|   	/* fourth the key bin material */
# 2039|   	if (internal_data) {
# 2040|-> 		keybin = ldns_rdf_new_frm_data(LDNS_RDF_TYPE_B64, size, bin);
# 2041|   		LDNS_FREE(bin);
# 2042|   		ldns_rr_push_rdf(pubkey, keybin);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def742]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2106:21: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2093:11: branch_false: following 'false' branch (when 'line' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2097:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2097:14: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2098:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2106:21: danger: 'fopen(filename, "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/2)
# 2104|   	}
# 2105|   	
# 2106|-> 	while ((c = fgetc(fp)) && i+1 < LDNS_MAX_PACKETLEN && c != EOF) {
# 2107|   		line[i] = c;
# 2108|   		i++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def743]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2106:21: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2093:11: branch_false: following 'false' branch (when 'line' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2097:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2097:14: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2098:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2106:21: danger: 'fopen(filename, "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/2)
# 2104|   	}
# 2105|   	
# 2106|-> 	while ((c = fgetc(fp)) && i+1 < LDNS_MAX_PACKETLEN && c != EOF) {
# 2107|   		line[i] = c;
# 2108|   		i++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def744]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2106:21: warning[-Wanalyzer-malloc-leak]: leak of 'line'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2088:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2093:11: branch_false: following 'false' branch (when 'line' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2097:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2098:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2106:21: danger: 'line' leaks here; was allocated at [(1)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/0)
# 2104|   	}
# 2105|   	
# 2106|-> 	while ((c = fgetc(fp)) && i+1 < LDNS_MAX_PACKETLEN && c != EOF) {
# 2107|   		line[i] = c;
# 2108|   		i++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def745]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2121:26: warning[-Wanalyzer-malloc-leak]: leak of 'line'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2088:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2093:11: branch_false: following 'false' branch (when 'line' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2097:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2098:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2106:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2106:16: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2114:12: branch_false: following 'false' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2121:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2121:26: danger: 'line' leaks here; was allocated at [(1)](sarif:/runs/0/results/72/codeFlows/0/threadFlows/0/locations/0)
# 2119|   		return NULL;
# 2120|   	} else {
# 2121|-> 		status = ldns_rr_new_frm_str(&r, line, 0, NULL, NULL);
# 2122|   		if (status == LDNS_STATUS_OK && (ldns_rr_get_type(r) == LDNS_RR_TYPE_DNSKEY || ldns_rr_get_type(r) == LDNS_RR_TYPE_DS)) {
# 2123|   			LDNS_FREE(line);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def746]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2122:50: warning[-Wanalyzer-malloc-leak]: leak of 'line'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2088:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2093:11: branch_false: following 'false' branch (when 'line' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2097:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2098:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2106:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2106:16: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2114:12: branch_false: following 'false' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2121:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2122:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2122:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2122:50: danger: 'line' leaks here; was allocated at [(1)](sarif:/runs/0/results/73/codeFlows/0/threadFlows/0/locations/0)
# 2120|   	} else {
# 2121|   		status = ldns_rr_new_frm_str(&r, line, 0, NULL, NULL);
# 2122|-> 		if (status == LDNS_STATUS_OK && (ldns_rr_get_type(r) == LDNS_RR_TYPE_DNSKEY || ldns_rr_get_type(r) == LDNS_RR_TYPE_DS)) {
# 2123|   			LDNS_FREE(line);
# 2124|   			return r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def747]
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2122:96: warning[-Wanalyzer-malloc-leak]: leak of 'line'
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2088:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2093:11: branch_false: following 'false' branch (when 'line' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2097:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2098:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2106:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2106:16: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2114:12: branch_false: following 'false' branch (when 'i != 0')...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2121:26: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2122:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2122:50: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2122:21: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2122:96: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/keys.c:2122:96: danger: 'line' leaks here; was allocated at [(1)](sarif:/runs/0/results/74/codeFlows/0/threadFlows/0/locations/0)
# 2120|   	} else {
# 2121|   		status = ldns_rr_new_frm_str(&r, line, 0, NULL, NULL);
# 2122|-> 		if (status == LDNS_STATUS_OK && (ldns_rr_get_type(r) == LDNS_RR_TYPE_DNSKEY || ldns_rr_get_type(r) == LDNS_RR_TYPE_DS)) {
# 2123|   			LDNS_FREE(line);
# 2124|   			return r;

Error: CPPCHECK_WARNING (CWE-476): [#def748]
ldns-1.8.4/ldns-1.8.4_python3/ldns/buffer.h:173: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  171|   ldns_buffer_set_position(ldns_buffer *buffer, size_t mark)
#  172|   {
#  173|-> 	assert(mark <= buffer->_limit);
#  174|   	buffer->_position = mark;
#  175|   }

Error: CPPCHECK_WARNING (CWE-476): [#def749]
ldns-1.8.4/ldns-1.8.4_python3/ldns/buffer.h:174: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  172|   {
#  173|   	assert(mark <= buffer->_limit);
#  174|-> 	buffer->_position = mark;
#  175|   }
#  176|   

Error: CPPCHECK_WARNING (CWE-476): [#def750]
ldns-1.8.4/ldns-1.8.4_python3/ldns/buffer.h:225: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  223|   ldns_buffer_capacity(const ldns_buffer *buffer)
#  224|   {
#  225|-> 	return buffer->_capacity;
#  226|   }
#  227|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def751]
ldns-1.8.4/ldns-1.8.4_python3/net.c:78:16: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:527:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:529:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:528:23: call_function: calling 'ldns_rdf2native_sockaddr_storage_port' from 'ldns_send_buffer'
#   76|   	memset(data, 0, sizeof(struct sockaddr_storage));
#   77|   
#   78|->         switch(ldns_rdf_get_type(rd)) {
#   79|                   case LDNS_RDF_TYPE_A:
#   80|   #ifndef S_SPLINT_S

Error: GCC_ANALYZER_WARNING (CWE-401): [#def752]
ldns-1.8.4/ldns-1.8.4_python3/net.c:85:25: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:527:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:529:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:528:23: call_function: calling 'ldns_rdf2native_sockaddr_storage_port' from 'ldns_send_buffer'
#   83|                           data_in = (struct sockaddr_in*) data;
#   84|                           data_in->sin_port = (in_port_t)htons(port);
#   85|->                         memcpy(&(data_in->sin_addr), ldns_rdf_data(rd), ldns_rdf_size(rd));
#   86|                           *size = sizeof(struct sockaddr_in);
#   87|                           return data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def753]
ldns-1.8.4/ldns-1.8.4_python3/net.c:85:54: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:527:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:529:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:528:23: call_function: calling 'ldns_rdf2native_sockaddr_storage_port' from 'ldns_send_buffer'
#   83|                           data_in = (struct sockaddr_in*) data;
#   84|                           data_in->sin_port = (in_port_t)htons(port);
#   85|->                         memcpy(&(data_in->sin_addr), ldns_rdf_data(rd), ldns_rdf_size(rd));
#   86|                           *size = sizeof(struct sockaddr_in);
#   87|                           return data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def754]
ldns-1.8.4/ldns-1.8.4_python3/net.c:94:25: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:527:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:529:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:528:23: call_function: calling 'ldns_rdf2native_sockaddr_storage_port' from 'ldns_send_buffer'
#   92|                           data_in6 = (struct sockaddr_in6*) data;
#   93|                           data_in6->sin6_port = (in_port_t)htons(port);
#   94|->                         memcpy(&data_in6->sin6_addr, ldns_rdf_data(rd), ldns_rdf_size(rd));
#   95|                           *size = sizeof(struct sockaddr_in6);
#   96|                           return data;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def755]
ldns-1.8.4/ldns-1.8.4_python3/net.c:94:54: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:527:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:529:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:528:23: call_function: calling 'ldns_rdf2native_sockaddr_storage_port' from 'ldns_send_buffer'
#   92|                           data_in6 = (struct sockaddr_in6*) data;
#   93|                           data_in6->sin6_port = (in_port_t)htons(port);
#   94|->                         memcpy(&data_in6->sin6_addr, ldns_rdf_data(rd), ldns_rdf_size(rd));
#   95|                           *size = sizeof(struct sockaddr_in6);
#   96|                           return data;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def756]
ldns-1.8.4/ldns-1.8.4_python3/net.c:117:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'sockfd'
ldns-1.8.4/ldns-1.8.4_python3/net.c:336:1: enter_function: entry to 'ldns_tcp_send_from'
ldns-1.8.4/ldns-1.8.4_python3/net.c:344:18: call_function: calling 'ldns_tcp_bgsend_from' from 'ldns_tcp_send_from'
#  115|   #ifdef HAVE_FCNTL
#  116|   	int flag;
#  117|-> 	if((flag = fcntl(sockfd, F_GETFL)) != -1) {
#  118|   		flag |= O_NONBLOCK;
#  119|   		if(fcntl(sockfd, F_SETFL, flag) == -1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def757]
ldns-1.8.4/ldns-1.8.4_python3/net.c:117:20: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:533:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: return_function: returning to 'ldns_send_buffer' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:571:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:572:40: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:572:64: branch_true: following 'true' branch (when 'retries != 0')...
ldns-1.8.4/ldns-1.8.4_python3/net.c:574:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:574:41: call_function: calling 'ldns_tcp_send_from' from 'ldns_send_buffer'
#  115|   #ifdef HAVE_FCNTL
#  116|   	int flag;
#  117|-> 	if((flag = fcntl(sockfd, F_GETFL)) != -1) {
#  118|   		flag |= O_NONBLOCK;
#  119|   		if(fcntl(sockfd, F_SETFL, flag) == -1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def758]
ldns-1.8.4/ldns-1.8.4_python3/net.c:117:20: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(resolver), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:895:1: enter_function: entry to 'ldns_axfr_start'
ldns-1.8.4/ldns-1.8.4_python3/net.c:907:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:913:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:916:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:925:14: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:927:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:927:20: branch_false: following 'false' branch (when 'ns' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_axfr_start'
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: return_function: returning to 'ldns_axfr_start' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:951:37: call_function: calling 'ldns_tcp_connect_from' from 'ldns_axfr_start'
#  115|   #ifdef HAVE_FCNTL
#  116|   	int flag;
#  117|-> 	if((flag = fcntl(sockfd, F_GETFL)) != -1) {
#  118|   		flag |= O_NONBLOCK;
#  119|   		if(fcntl(sockfd, F_SETFL, flag) == -1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def759]
ldns-1.8.4/ldns-1.8.4_python3/net.c:119:20: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:533:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: return_function: returning to 'ldns_send_buffer' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:571:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:572:40: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:572:64: branch_true: following 'true' branch (when 'retries != 0')...
ldns-1.8.4/ldns-1.8.4_python3/net.c:574:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:574:41: call_function: calling 'ldns_tcp_send_from' from 'ldns_send_buffer'
#  117|   	if((flag = fcntl(sockfd, F_GETFL)) != -1) {
#  118|   		flag |= O_NONBLOCK;
#  119|-> 		if(fcntl(sockfd, F_SETFL, flag) == -1) {
#  120|   			/* ignore error, continue blockingly */
#  121|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def760]
ldns-1.8.4/ldns-1.8.4_python3/net.c:119:20: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(resolver), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:895:1: enter_function: entry to 'ldns_axfr_start'
ldns-1.8.4/ldns-1.8.4_python3/net.c:907:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:913:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:916:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:925:14: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:927:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:927:20: branch_false: following 'false' branch (when 'ns' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_axfr_start'
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: return_function: returning to 'ldns_axfr_start' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:951:37: call_function: calling 'ldns_tcp_connect_from' from 'ldns_axfr_start'
#  117|   	if((flag = fcntl(sockfd, F_GETFL)) != -1) {
#  118|   		flag |= O_NONBLOCK;
#  119|-> 		if(fcntl(sockfd, F_SETFL, flag) == -1) {
#  120|   			/* ignore error, continue blockingly */
#  121|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def761]
ldns-1.8.4/ldns-1.8.4_python3/net.c:178:15: warning[-Wanalyzer-malloc-leak]: leak of 'wire'
ldns-1.8.4/ldns-1.8.4_python3/net.c:751:1: enter_function: entry to 'ldns_tcp_read_wire_timeout'
ldns-1.8.4/ldns-1.8.4_python3/net.c:757:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/net.c:758:12: branch_false: following 'false' branch (when 'wire' is non-NULL)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:763:16: branch_true: following 'true' branch (when 'bytes <= 1')...
ldns-1.8.4/ldns-1.8.4_python3/net.c:764:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:764:21: call_function: calling 'ldns_sock_wait' from 'ldns_tcp_read_wire_timeout'
#  176|   	}
#  177|   	
#  178|-> 	ret = poll(pfds, 1, (int)(timeout.tv_sec * 1000
#  179|   				+ timeout.tv_usec / 1000));
#  180|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def762]
ldns-1.8.4/ldns-1.8.4_python3/net.c:211:13: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:533:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: return_function: returning to 'ldns_send_buffer' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:571:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:572:40: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:572:64: branch_true: following 'true' branch (when 'retries != 0')...
ldns-1.8.4/ldns-1.8.4_python3/net.c:574:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:574:41: call_function: calling 'ldns_tcp_send_from' from 'ldns_send_buffer'
#  209|   	/* perform nonblocking connect, to be able to wait with select() */
#  210|   	ldns_sock_nonblock(sockfd);
#  211|-> 	if (connect(sockfd, (struct sockaddr*)to, tolen) == -1) {
#  212|   #ifndef USE_WINSOCK
#  213|   #ifdef EINPROGRESS

Error: GCC_ANALYZER_WARNING (CWE-401): [#def763]
ldns-1.8.4/ldns-1.8.4_python3/net.c:211:13: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(resolver), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:895:1: enter_function: entry to 'ldns_axfr_start'
ldns-1.8.4/ldns-1.8.4_python3/net.c:907:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:913:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:916:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:925:14: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:927:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:927:20: branch_false: following 'false' branch (when 'ns' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_axfr_start'
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: return_function: returning to 'ldns_axfr_start' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:951:37: call_function: calling 'ldns_tcp_connect_from' from 'ldns_axfr_start'
#  209|   	/* perform nonblocking connect, to be able to wait with select() */
#  210|   	ldns_sock_nonblock(sockfd);
#  211|-> 	if (connect(sockfd, (struct sockaddr*)to, tolen) == -1) {
#  212|   #ifndef USE_WINSOCK
#  213|   #ifdef EINPROGRESS

Error: GCC_ANALYZER_WARNING (CWE-401): [#def764]
ldns-1.8.4/ldns-1.8.4_python3/net.c:471:9: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_udp_read_wire(ldns_udp_bgsend_from(qbin,  to,  tolen,  from,  fromlen,  timeout), answer_size, 0, 0)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:445:1: enter_function: entry to 'ldns_udp_send_from'
ldns-1.8.4/ldns-1.8.4_python3/net.c:453:18: call_function: calling 'ldns_udp_bgsend_from' from 'ldns_udp_send_from'
ldns-1.8.4/ldns-1.8.4_python3/net.c:453:18: return_function: returning to 'ldns_udp_send_from' from 'ldns_udp_bgsend_from'
ldns-1.8.4/ldns-1.8.4_python3/net.c:455:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:460:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:460:13: call_function: calling 'ldns_sock_wait' from 'ldns_udp_send_from'
ldns-1.8.4/ldns-1.8.4_python3/net.c:460:13: return_function: returning to 'ldns_udp_send_from' from 'ldns_sock_wait'
ldns-1.8.4/ldns-1.8.4_python3/net.c:460:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:468:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:470:18: call_function: calling 'ldns_udp_read_wire' from 'ldns_udp_send_from'
ldns-1.8.4/ldns-1.8.4_python3/net.c:470:18: return_function: returning to 'ldns_udp_send_from' from 'ldns_udp_read_wire'
ldns-1.8.4/ldns-1.8.4_python3/net.c:471:9: danger: 'ldns_udp_read_wire(ldns_udp_bgsend_from(qbin,  to,  tolen,  from,  fromlen,  timeout), answer_size, 0, 0)' leaks here; was allocated at [(36)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/35)
#  469|   
#  470|   	answer = ldns_udp_read_wire(sockfd, answer_size, NULL, NULL);
#  471|-> 	close_socket(sockfd);
#  472|   
#  473|   	if (!answer) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def765]
ldns-1.8.4/ldns-1.8.4_python3/net.c:533:25: warning[-Wanalyzer-malloc-leak]: leak of 'src'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:527:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:529:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:528:23: call_function: calling 'ldns_rdf2native_sockaddr_storage_port' from 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:528:23: return_function: returning to 'ldns_send_buffer' from 'ldns_rdf2native_sockaddr_storage_port'
ldns-1.8.4/ldns-1.8.4_python3/net.c:533:25: danger: 'src' leaks here; was allocated at [(8)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/7)
#  531|   
#  532|   	/* loop through all defined nameservers */
#  533|-> 	for (i = 0; i < ldns_resolver_nameserver_count(r); i++) {
#  534|   		if (rtt[i] == LDNS_RESOLV_RTT_INF) {
#  535|   			/* not reachable nameserver! */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def766]
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: warning[-Wanalyzer-malloc-leak]: leak of 'src'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:527:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:529:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:528:23: call_function: calling 'ldns_rdf2native_sockaddr_storage_port' from 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:528:23: return_function: returning to 'ldns_send_buffer' from 'ldns_rdf2native_sockaddr_storage_port'
ldns-1.8.4/ldns-1.8.4_python3/net.c:533:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: danger: 'src' leaks here; was allocated at [(8)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/7)
#  542|   		printf("\n");
#  543|   		*/
#  544|-> 		ns = ldns_rdf2native_sockaddr_storage(ns_array[i],
#  545|   				ldns_resolver_port(r), &ns_len);
#  546|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def767]
ldns-1.8.4/ldns-1.8.4_python3/net.c:549:22: warning[-Wanalyzer-null-dereference]: dereference of NULL 'src'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:533:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:549:22: danger: dereference of NULL 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)'
#  547|   
#  548|   #ifndef S_SPLINT_S
#  549|-> 		if ((ns->ss_family == AF_INET) &&
#  550|   				(ldns_resolver_ip6(r) == LDNS_RESOLV_INET6)) {
#  551|   			/* not reachable */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def768]
ldns-1.8.4/ldns-1.8.4_python3/net.c:550:34: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:533:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: return_function: returning to 'ldns_send_buffer' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:549:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:550:34: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:550:34: danger: 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)' leaks here; was allocated at [(12)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/11)
#  548|   #ifndef S_SPLINT_S
#  549|   		if ((ns->ss_family == AF_INET) &&
#  550|-> 				(ldns_resolver_ip6(r) == LDNS_RESOLV_INET6)) {
#  551|   			/* not reachable */
#  552|   			LDNS_FREE(ns);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def769]
ldns-1.8.4/ldns-1.8.4_python3/net.c:557:35: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:533:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: return_function: returning to 'ldns_send_buffer' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:556:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:557:35: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:557:35: danger: 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)' leaks here; was allocated at [(12)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/11)
#  555|   
#  556|   		if ((ns->ss_family == AF_INET6) &&
#  557|-> 				 (ldns_resolver_ip6(r) == LDNS_RESOLV_INET)) {
#  558|   			/* not reachable */
#  559|   			LDNS_FREE(ns);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def770]
ldns-1.8.4/ldns-1.8.4_python3/net.c:571:21: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:533:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: return_function: returning to 'ldns_send_buffer' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:571:21: danger: 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)' leaks here; was allocated at [(12)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/11)
#  569|   
#  570|   		/* reply_bytes implicitly handles our error */
#  571|-> 		if (ldns_resolver_usevc(r)) {
#  572|   			for (retries = ldns_resolver_retry(r); retries > 0; retries--) {
#  573|   				send_status = 

Error: GCC_ANALYZER_WARNING (CWE-401): [#def771]
ldns-1.8.4/ldns-1.8.4_python3/net.c:572:40: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:533:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: return_function: returning to 'ldns_send_buffer' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:571:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:572:40: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:572:40: danger: 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)' leaks here; was allocated at [(12)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/11)
#  570|   		/* reply_bytes implicitly handles our error */
#  571|   		if (ldns_resolver_usevc(r)) {
#  572|-> 			for (retries = ldns_resolver_retry(r); retries > 0; retries--) {
#  573|   				send_status = 
#  574|   					ldns_tcp_send_from(&reply_bytes, qb, 

Error: GCC_ANALYZER_WARNING (CWE-401): [#def772]
ldns-1.8.4/ldns-1.8.4_python3/net.c:574:41: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:533:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: return_function: returning to 'ldns_send_buffer' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:571:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:572:40: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:572:64: branch_true: following 'true' branch (when 'retries != 0')...
ldns-1.8.4/ldns-1.8.4_python3/net.c:574:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:574:41: danger: 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)' leaks here; was allocated at [(12)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/11)
#  572|   			for (retries = ldns_resolver_retry(r); retries > 0; retries--) {
#  573|   				send_status = 
#  574|-> 					ldns_tcp_send_from(&reply_bytes, qb, 
#  575|   						ns, (socklen_t)ns_len,
#  576|   						src, (socklen_t)src_len,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def773]
ldns-1.8.4/ldns-1.8.4_python3/net.c:584:40: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:533:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: return_function: returning to 'ldns_send_buffer' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:571:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:584:40: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:584:40: danger: 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)' leaks here; was allocated at [(12)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/11)
#  582|   			}
#  583|   		} else {
#  584|-> 			for (retries = ldns_resolver_retry(r); retries > 0; retries--) {
#  585|   				/* ldns_rdf_print(stdout, ns_array[i]); */
#  586|   				send_status = 

Error: GCC_ANALYZER_WARNING (CWE-401): [#def774]
ldns-1.8.4/ldns-1.8.4_python3/net.c:587:41: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:533:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: return_function: returning to 'ldns_send_buffer' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:571:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:584:40: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:584:64: branch_true: following 'true' branch (when 'retries != 0')...
ldns-1.8.4/ldns-1.8.4_python3/net.c:587:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:587:41: danger: 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)' leaks here; was allocated at [(12)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/11)
#  585|   				/* ldns_rdf_print(stdout, ns_array[i]); */
#  586|   				send_status = 
#  587|-> 					ldns_udp_send_from(&reply_bytes, qb,
#  588|   						ns,  (socklen_t)ns_len,
#  589|   						src, (socklen_t)src_len,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def775]
ldns-1.8.4/ldns-1.8.4_python3/net.c:599:25: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:533:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: return_function: returning to 'ldns_send_buffer' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:572:64: branch_false: following 'false' branch (when 'retries == 0')...
ldns-1.8.4/ldns-1.8.4_python3/net.c:598:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:598:20: branch_true: following 'true' branch (when 'send_status != 0')...
ldns-1.8.4/ldns-1.8.4_python3/net.c:599:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:599:25: danger: 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)' leaks here; was allocated at [(12)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/11)
#  597|   
#  598|   		if (send_status != LDNS_STATUS_OK) {
#  599|-> 			ldns_resolver_set_nameserver_rtt(r, i, LDNS_RESOLV_RTT_INF);
#  600|   			status = send_status;
#  601|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def776]
ldns-1.8.4/ldns-1.8.4_python3/net.c:606:29: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:533:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: return_function: returning to 'ldns_send_buffer' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:572:64: branch_false: following 'false' branch (when 'retries == 0')...
ldns-1.8.4/ldns-1.8.4_python3/net.c:598:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:598:20: branch_true: following 'true' branch (when 'send_status != 0')...
ldns-1.8.4/ldns-1.8.4_python3/net.c:599:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:604:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:606:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:606:29: danger: 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)' leaks here; was allocated at [(12)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/11)
#  604|   		if (!reply_bytes) {
#  605|   			/* the current nameserver seems to have a problem, blacklist it */
#  606|-> 			if (ldns_resolver_fail(r)) {
#  607|   				if(src) {
#  608|   					LDNS_FREE(src);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def777]
ldns-1.8.4/ldns-1.8.4_python3/net.c:693:17: warning[-Wanalyzer-malloc-leak]: leak of 'sendbuf'
ldns-1.8.4/ldns-1.8.4_python3/net.c:681:1: enter_function: entry to 'ldns_tcp_send_query'
ldns-1.8.4/ldns-1.8.4_python3/net.c:688:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/net.c:689:11: branch_false: following 'false' branch (when 'sendbuf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:690:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:691:29: call_function: inlined call to 'ldns_buffer_begin' from 'ldns_tcp_send_query'
ldns-1.8.4/ldns-1.8.4_python3/net.c:691:29: call_function: inlined call to 'ldns_buffer_begin' from 'ldns_tcp_send_query'
ldns-1.8.4/ldns-1.8.4_python3/net.c:693:17: danger: 'sendbuf' leaks here; was allocated at [(2)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/1)
#  691|   	memcpy(sendbuf + 2, ldns_buffer_begin(qbin), ldns_buffer_position(qbin));
#  692|   
#  693|-> 	bytes = sendto(sockfd, (void*)sendbuf,
#  694|   			ldns_buffer_position(qbin) + 2, 0, (struct sockaddr *)to, tolen);
#  695|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def778]
ldns-1.8.4/ldns-1.8.4_python3/net.c:711:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'ldns_udp_connect2(to,  timeout)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:402:1: enter_function: entry to 'ldns_udp_bgsend_from'
ldns-1.8.4/ldns-1.8.4_python3/net.c:409:18: call_function: calling 'ldns_udp_connect2' from 'ldns_udp_bgsend_from'
ldns-1.8.4/ldns-1.8.4_python3/net.c:409:18: return_function: returning to 'ldns_udp_bgsend_from' from 'ldns_udp_connect2'
ldns-1.8.4/ldns-1.8.4_python3/net.c:411:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:415:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:415:12: branch_false: following 'false' branch (when 'from' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:420:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:420:13: call_function: calling 'ldns_udp_send_query' from 'ldns_udp_bgsend_from'
#  709|   	ssize_t bytes;
#  710|   
#  711|-> 	bytes = sendto(sockfd, (void*)ldns_buffer_begin(qbin),
#  712|   			ldns_buffer_position(qbin), 0, (struct sockaddr *)to, tolen);
#  713|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def779]
ldns-1.8.4/ldns-1.8.4_python3/net.c:711:17: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(r), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:492:1: enter_function: entry to 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:513:9: branch_true: following 'true' branch (when 'r' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:516:15: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:533:21: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:534:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_send_buffer'
ldns-1.8.4/ldns-1.8.4_python3/net.c:544:22: return_function: returning to 'ldns_send_buffer' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:571:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:584:40: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:584:64: branch_true: following 'true' branch (when 'retries != 0')...
ldns-1.8.4/ldns-1.8.4_python3/net.c:587:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:587:41: call_function: calling 'ldns_udp_send_from' from 'ldns_send_buffer'
#  709|   	ssize_t bytes;
#  710|   
#  711|-> 	bytes = sendto(sockfd, (void*)ldns_buffer_begin(qbin),
#  712|   			ldns_buffer_position(qbin), 0, (struct sockaddr *)to, tolen);
#  713|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def780]
ldns-1.8.4/ldns-1.8.4_python3/net.c:733:21: warning[-Wanalyzer-malloc-leak]: leak of 'wire'
ldns-1.8.4/ldns-1.8.4_python3/net.c:727:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/net.c:728:12: branch_false: following 'false' branch (when 'wire' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:733:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:733:21: danger: 'wire' leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
#  731|   	}
#  732|   
#  733|-> 	wire_size = recvfrom(sockfd, (void*)wire, LDNS_MAX_PACKETLEN, 0, 
#  734|   			(struct sockaddr *)from, fromlen);
#  735|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def781]
ldns-1.8.4/ldns-1.8.4_python3/net.c:769:22: warning[-Wanalyzer-malloc-leak]: leak of 'wire'
ldns-1.8.4/ldns-1.8.4_python3/net.c:751:1: enter_function: entry to 'ldns_tcp_read_wire_timeout'
ldns-1.8.4/ldns-1.8.4_python3/net.c:757:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/net.c:758:12: branch_false: following 'false' branch (when 'wire' is non-NULL)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:763:16: branch_true: following 'true' branch (when 'bytes <= 1')...
ldns-1.8.4/ldns-1.8.4_python3/net.c:764:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:764:21: call_function: calling 'ldns_sock_wait' from 'ldns_tcp_read_wire_timeout'
ldns-1.8.4/ldns-1.8.4_python3/net.c:764:21: return_function: returning to 'ldns_tcp_read_wire_timeout' from 'ldns_sock_wait'
ldns-1.8.4/ldns-1.8.4_python3/net.c:764:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:770:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:769:22: danger: 'wire' leaks here; was allocated at [(2)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/1)
#  767|   			return NULL;
#  768|   		}
#  769|-> 		rc = recv(sockfd, (void*) (wire + bytes), 
#  770|   				(size_t) (2 - bytes), 0);
#  771|   		if (rc == -1 || rc == 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def782]
ldns-1.8.4/ldns-1.8.4_python3/net.c:795:22: warning[-Wanalyzer-malloc-leak]: leak of 'wire'
ldns-1.8.4/ldns-1.8.4_python3/net.c:751:1: enter_function: entry to 'ldns_tcp_read_wire_timeout'
ldns-1.8.4/ldns-1.8.4_python3/net.c:757:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/net.c:758:12: branch_false: following 'false' branch (when 'wire' is non-NULL)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:763:16: branch_true: following 'true' branch (when 'bytes <= 1')...
ldns-1.8.4/ldns-1.8.4_python3/net.c:764:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:764:21: call_function: calling 'ldns_sock_wait' from 'ldns_tcp_read_wire_timeout'
ldns-1.8.4/ldns-1.8.4_python3/net.c:764:21: return_function: returning to 'ldns_tcp_read_wire_timeout' from 'ldns_sock_wait'
ldns-1.8.4/ldns-1.8.4_python3/net.c:764:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:770:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:771:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:776:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:782:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/net.c:783:12: branch_false: following 'false' branch (when 'wire' is non-NULL)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:789:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:790:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:790:21: call_function: calling 'ldns_sock_wait' from 'ldns_tcp_read_wire_timeout'
ldns-1.8.4/ldns-1.8.4_python3/net.c:790:21: return_function: returning to 'ldns_tcp_read_wire_timeout' from 'ldns_sock_wait'
ldns-1.8.4/ldns-1.8.4_python3/net.c:790:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:796:42: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:795:22: danger: 'wire' leaks here; was allocated at [(17)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/16)
#  793|   			return NULL;
#  794|   		}
#  795|-> 		rc = recv(sockfd, (void*) (wire + bytes), 
#  796|   				(size_t) (wire_size - bytes), 0);
#  797|   		if (rc == -1 || rc == 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def783]
ldns-1.8.4/ldns-1.8.4_python3/net.c:823:22: warning[-Wanalyzer-malloc-leak]: leak of 'wire'
ldns-1.8.4/ldns-1.8.4_python3/net.c:816:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/net.c:817:12: branch_false: following 'false' branch (when 'wire' is non-NULL)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:822:16: branch_true: following 'true' branch (when 'bytes <= 1')...
ldns-1.8.4/ldns-1.8.4_python3/net.c:824:42: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:823:22: danger: 'wire' leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
#  821|   	
#  822|   	while (bytes < 2) {
#  823|-> 		rc = recv(sockfd, (void*) (wire + bytes), 
#  824|   				(size_t) (2 - bytes), 0);
#  825|   		if (rc == -1 || rc == 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def784]
ldns-1.8.4/ldns-1.8.4_python3/net.c:844:22: warning[-Wanalyzer-malloc-leak]: leak of 'wire'
ldns-1.8.4/ldns-1.8.4_python3/net.c:816:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/net.c:817:12: branch_false: following 'false' branch (when 'wire' is non-NULL)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:822:16: branch_true: following 'true' branch (when 'bytes <= 1')...
ldns-1.8.4/ldns-1.8.4_python3/net.c:824:42: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:825:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:830:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:836:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/net.c:837:12: branch_false: following 'false' branch (when 'wire' is non-NULL)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:843:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:845:42: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:844:22: danger: 'wire' leaks here; was allocated at [(9)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/8)
#  842|   
#  843|   	while (bytes < (ssize_t) wire_size) {
#  844|-> 		rc = recv(sockfd, (void*) (wire + bytes), 
#  845|   				(size_t) (wire_size - bytes), 0);
#  846|   		if (rc == -1 || rc == 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def785]
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:21: warning[-Wanalyzer-malloc-leak]: leak of 'src'
ldns-1.8.4/ldns-1.8.4_python3/net.c:895:1: enter_function: entry to 'ldns_axfr_start'
ldns-1.8.4/ldns-1.8.4_python3/net.c:907:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:913:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:916:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:916:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:918:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:917:23: call_function: calling 'ldns_rdf2native_sockaddr_storage_port' from 'ldns_axfr_start'
ldns-1.8.4/ldns-1.8.4_python3/net.c:917:23: return_function: returning to 'ldns_axfr_start' from 'ldns_rdf2native_sockaddr_storage_port'
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:21: danger: 'src' leaks here; was allocated at [(10)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/9)
#  922|            * @hostname is used */
#  923|           for (ns_i = 0;
#  924|->              ns_i < ldns_resolver_nameserver_count(resolver) &&
#  925|                resolver->_socket == SOCK_INVALID;
#  926|                ns_i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def786]
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: warning[-Wanalyzer-malloc-leak]: leak of 'src'
ldns-1.8.4/ldns-1.8.4_python3/net.c:895:1: enter_function: entry to 'ldns_axfr_start'
ldns-1.8.4/ldns-1.8.4_python3/net.c:907:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:913:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:916:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:916:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:918:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:917:23: call_function: calling 'ldns_rdf2native_sockaddr_storage_port' from 'ldns_axfr_start'
ldns-1.8.4/ldns-1.8.4_python3/net.c:917:23: return_function: returning to 'ldns_axfr_start' from 'ldns_rdf2native_sockaddr_storage_port'
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:925:14: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:927:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:927:20: branch_false: following 'false' branch (when 'ns' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: danger: 'src' leaks here; was allocated at [(10)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/9)
#  928|   			LDNS_FREE(ns);
#  929|   		}
#  930|-> 	        ns = ldns_rdf2native_sockaddr_storage(
#  931|   	        	resolver->_nameservers[ns_i],
#  932|   			ldns_resolver_port(resolver), &ns_len);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def787]
ldns-1.8.4/ldns-1.8.4_python3/net.c:934:22: warning[-Wanalyzer-null-dereference]: dereference of NULL 'src'
ldns-1.8.4/ldns-1.8.4_python3/net.c:907:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:913:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:916:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:925:14: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:927:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:927:20: branch_false: following 'false' branch (when 'ns' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:934:22: danger: dereference of NULL 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(resolver), &ns_len)'
#  932|   			ldns_resolver_port(resolver), &ns_len);
#  933|   #ifndef S_SPLINT_S
#  934|-> 		if ((ns->ss_family == AF_INET) &&
#  935|   			(ldns_resolver_ip6(resolver) == LDNS_RESOLV_INET6)) {
#  936|   			/* not reachable */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def788]
ldns-1.8.4/ldns-1.8.4_python3/net.c:935:26: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(resolver), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:895:1: enter_function: entry to 'ldns_axfr_start'
ldns-1.8.4/ldns-1.8.4_python3/net.c:907:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:913:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:916:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:925:14: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:927:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:927:20: branch_false: following 'false' branch (when 'ns' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_axfr_start'
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: return_function: returning to 'ldns_axfr_start' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:934:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:935:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:935:26: danger: 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(resolver), &ns_len)' leaks here; was allocated at [(16)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/15)
#  933|   #ifndef S_SPLINT_S
#  934|   		if ((ns->ss_family == AF_INET) &&
#  935|-> 			(ldns_resolver_ip6(resolver) == LDNS_RESOLV_INET6)) {
#  936|   			/* not reachable */
#  937|   			LDNS_FREE(ns);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def789]
ldns-1.8.4/ldns-1.8.4_python3/net.c:943:27: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(resolver), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:895:1: enter_function: entry to 'ldns_axfr_start'
ldns-1.8.4/ldns-1.8.4_python3/net.c:907:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:913:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:916:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:925:14: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:927:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:927:20: branch_false: following 'false' branch (when 'ns' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_axfr_start'
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: return_function: returning to 'ldns_axfr_start' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:942:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:943:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:943:27: danger: 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(resolver), &ns_len)' leaks here; was allocated at [(16)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/15)
#  941|   
#  942|   		if ((ns->ss_family == AF_INET6) &&
#  943|-> 			 (ldns_resolver_ip6(resolver) == LDNS_RESOLV_INET)) {
#  944|   			/* not reachable */
#  945|   			LDNS_FREE(ns);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def790]
ldns-1.8.4/ldns-1.8.4_python3/net.c:951:37: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(resolver), &ns_len)'
ldns-1.8.4/ldns-1.8.4_python3/net.c:895:1: enter_function: entry to 'ldns_axfr_start'
ldns-1.8.4/ldns-1.8.4_python3/net.c:907:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:913:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:916:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:925:14: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:924:14: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/net.c:927:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:927:20: branch_false: following 'false' branch (when 'ns' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: call_function: calling 'ldns_rdf2native_sockaddr_storage' from 'ldns_axfr_start'
ldns-1.8.4/ldns-1.8.4_python3/net.c:930:22: return_function: returning to 'ldns_axfr_start' from 'ldns_rdf2native_sockaddr_storage'
ldns-1.8.4/ldns-1.8.4_python3/net.c:951:37: danger: 'ldns_rdf2native_sockaddr_storage(*<unknown>,  ldns_resolver_port(resolver), &ns_len)' leaks here; was allocated at [(16)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/15)
#  949|   #endif
#  950|   
#  951|-> 		resolver->_socket = ldns_tcp_connect_from(
#  952|   				ns, (socklen_t)ns_len,
#  953|   				src, (socklen_t)src_len,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def791]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:473:9: warning[-Wanalyzer-null-dereference]: dereference of NULL 'packet'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1225:9: call_function: calling 'ldns_pkt_set_id' from 'ldns_pkt_clone'
#  471|   ldns_pkt_set_id(ldns_pkt *packet, uint16_t id)
#  472|   {
#  473|-> 	packet->_header->_id = id;
#  474|   }
#  475|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def792]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:487:9: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1107:1: enter_function: entry to 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1114:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1123:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1124:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1124:17: call_function: calling 'ldns_pkt_free' from 'ldns_pkt_query_new_internal'
#  485|   ldns_pkt_set_qr(ldns_pkt *packet, bool qr)
#  486|   {
#  487|-> 	packet->_header->_qr = qr;
#  488|   }
#  489|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def793]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:682:30: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1107:1: enter_function: entry to 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1114:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1123:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1128:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1139:9: call_function: calling 'ldns_pkt_push_rr' from 'ldns_pkt_query_new_internal'
#  680|   	switch(section) {
#  681|   		case LDNS_SECTION_QUESTION:
#  682|-> 			if (!ldns_rr_list_push_rr(ldns_pkt_question(packet), rr)) {
#  683|   				return false;
#  684|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def794]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:682:30: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1107:1: enter_function: entry to 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1114:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1123:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1128:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1139:9: call_function: calling 'ldns_pkt_push_rr' from 'ldns_pkt_query_new_internal'
#  680|   	switch(section) {
#  681|   		case LDNS_SECTION_QUESTION:
#  682|-> 			if (!ldns_rr_list_push_rr(ldns_pkt_question(packet), rr)) {
#  683|   				return false;
#  684|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def795]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:694:30: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1107:1: enter_function: entry to 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1114:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1123:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1128:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1139:9: call_function: calling 'ldns_pkt_push_rr' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1139:9: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_push_rr'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1141:12: branch_true: following 'true' branch (when 'authsoa_rr' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1142:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1142:17: call_function: calling 'ldns_pkt_push_rr' from 'ldns_pkt_query_new_internal'
#  692|   			break;
#  693|   		case LDNS_SECTION_AUTHORITY:
#  694|-> 			if (!ldns_rr_list_push_rr(ldns_pkt_authority(packet), rr)) {
#  695|   				return false;
#  696|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def796]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:694:30: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1107:1: enter_function: entry to 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1114:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1123:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1128:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1139:9: call_function: calling 'ldns_pkt_push_rr' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1139:9: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_push_rr'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1141:12: branch_true: following 'true' branch (when 'authsoa_rr' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1142:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1142:17: call_function: calling 'ldns_pkt_push_rr' from 'ldns_pkt_query_new_internal'
#  692|   			break;
#  693|   		case LDNS_SECTION_AUTHORITY:
#  694|-> 			if (!ldns_rr_list_push_rr(ldns_pkt_authority(packet), rr)) {
#  695|   				return false;
#  696|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def797]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:807:24: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:771:12: branch_false: following 'false' branch (when 'edns_data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:774:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:776:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:779:27: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:779:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:782:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:786:21: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:786:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:790:63: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:794:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:798:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:798:24: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:800:20: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:804:30: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:807:24: danger: 'data' leaks here; was allocated at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
#  805|   		pos += size;
#  806|   
#  807|-> 		edns = ldns_edns_new(code, size, data);
#  808|   
#  809|   		if (!edns) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def798]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:857:29: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:847:12: branch_false: following 'false' branch (when 'packet' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:851:27: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:851:27: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:852:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:857:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:857:29: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  855|   	}
#  856|   
#  857|-> 	packet->_question = ldns_rr_list_new();
#  858|   	packet->_answer = ldns_rr_list_new();
#  859|   	packet->_authority = ldns_rr_list_new();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def799]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:857:29: warning[-Wanalyzer-malloc-leak]: leak of 'packet'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:846:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:847:12: branch_false: following 'false' branch (when 'packet' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:851:27: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:852:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:857:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:857:29: danger: 'packet' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  855|   	}
#  856|   
#  857|-> 	packet->_question = ldns_rr_list_new();
#  858|   	packet->_answer = ldns_rr_list_new();
#  859|   	packet->_authority = ldns_rr_list_new();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def800]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:858:27: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:847:12: branch_false: following 'false' branch (when 'packet' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:851:27: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:851:27: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:852:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:857:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:858:27: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  856|   
#  857|   	packet->_question = ldns_rr_list_new();
#  858|-> 	packet->_answer = ldns_rr_list_new();
#  859|   	packet->_authority = ldns_rr_list_new();
#  860|   	packet->_additional = ldns_rr_list_new();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def801]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:858:27: warning[-Wanalyzer-malloc-leak]: leak of 'packet'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:846:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:847:12: branch_false: following 'false' branch (when 'packet' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:851:27: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:852:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:857:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:858:27: danger: 'packet' leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  856|   
#  857|   	packet->_question = ldns_rr_list_new();
#  858|-> 	packet->_answer = ldns_rr_list_new();
#  859|   	packet->_authority = ldns_rr_list_new();
#  860|   	packet->_additional = ldns_rr_list_new();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def802]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:859:30: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:847:12: branch_false: following 'false' branch (when 'packet' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:851:27: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:851:27: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:852:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:857:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:859:30: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
#  857|   	packet->_question = ldns_rr_list_new();
#  858|   	packet->_answer = ldns_rr_list_new();
#  859|-> 	packet->_authority = ldns_rr_list_new();
#  860|   	packet->_additional = ldns_rr_list_new();
#  861|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def803]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:859:30: warning[-Wanalyzer-malloc-leak]: leak of 'packet'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:846:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:847:12: branch_false: following 'false' branch (when 'packet' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:851:27: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:852:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:857:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:859:30: danger: 'packet' leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  857|   	packet->_question = ldns_rr_list_new();
#  858|   	packet->_answer = ldns_rr_list_new();
#  859|-> 	packet->_authority = ldns_rr_list_new();
#  860|   	packet->_additional = ldns_rr_list_new();
#  861|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def804]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:860:31: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:847:12: branch_false: following 'false' branch (when 'packet' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:851:27: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:851:27: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:852:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:857:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:860:31: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
#  858|   	packet->_answer = ldns_rr_list_new();
#  859|   	packet->_authority = ldns_rr_list_new();
#  860|-> 	packet->_additional = ldns_rr_list_new();
#  861|   
#  862|   	/* default everything to false */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def805]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:860:31: warning[-Wanalyzer-malloc-leak]: leak of 'packet'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:846:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:847:12: branch_false: following 'false' branch (when 'packet' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:851:27: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:852:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:857:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:860:31: danger: 'packet' leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  858|   	packet->_answer = ldns_rr_list_new();
#  859|   	packet->_authority = ldns_rr_list_new();
#  860|-> 	packet->_additional = ldns_rr_list_new();
#  861|   
#  862|   	/* default everything to false */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def806]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1023:1: enter_function: entry to 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1032:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: danger: '<unknown>' leaks here; was allocated at [(6)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/5)
# 1039|   	}
# 1040|   
# 1041|-> 	question_rr = ldns_rr_new();
# 1042|   	if (!question_rr) {
# 1043|   		ldns_pkt_free(packet);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def807]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1023:1: enter_function: entry to 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1032:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: danger: 'ldns_pkt_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/3)
# 1039|   	}
# 1040|   
# 1041|-> 	question_rr = ldns_rr_new();
# 1042|   	if (!question_rr) {
# 1043|   		ldns_pkt_free(packet);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def808]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1054:13: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1023:1: enter_function: entry to 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1032:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1042:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1047:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1054:13: danger: '<unknown>' leaks here; was allocated at [(6)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/5)
# 1052|   	}
# 1053|   
# 1054|-> 	if (ldns_str2rdf_dname(&name_rdf, name) == LDNS_STATUS_OK) {
# 1055|   		ldns_rr_set_owner(question_rr, name_rdf);
# 1056|   		ldns_rr_set_type(question_rr, rr_type);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def809]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1054:13: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1023:1: enter_function: entry to 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1032:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1042:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1047:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1054:13: danger: 'ldns_pkt_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/3)
# 1052|   	}
# 1053|   
# 1054|-> 	if (ldns_str2rdf_dname(&name_rdf, name) == LDNS_STATUS_OK) {
# 1055|   		ldns_rr_set_owner(question_rr, name_rdf);
# 1056|   		ldns_rr_set_type(question_rr, rr_type);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def810]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1055:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1023:1: enter_function: entry to 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1032:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1042:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1047:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1054:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1055:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1055:17: danger: '<unknown>' leaks here; was allocated at [(6)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/5)
# 1053|   
# 1054|   	if (ldns_str2rdf_dname(&name_rdf, name) == LDNS_STATUS_OK) {
# 1055|-> 		ldns_rr_set_owner(question_rr, name_rdf);
# 1056|   		ldns_rr_set_type(question_rr, rr_type);
# 1057|   		ldns_rr_set_class(question_rr, rr_class);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def811]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1055:17: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1023:1: enter_function: entry to 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1032:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1042:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1047:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1054:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1055:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1055:17: danger: 'ldns_pkt_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/3)
# 1053|   
# 1054|   	if (ldns_str2rdf_dname(&name_rdf, name) == LDNS_STATUS_OK) {
# 1055|-> 		ldns_rr_set_owner(question_rr, name_rdf);
# 1056|   		ldns_rr_set_type(question_rr, rr_type);
# 1057|   		ldns_rr_set_class(question_rr, rr_class);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def812]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1056:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1023:1: enter_function: entry to 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1032:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1042:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1047:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1054:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1055:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1056:17: danger: '<unknown>' leaks here; was allocated at [(6)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/5)
# 1054|   	if (ldns_str2rdf_dname(&name_rdf, name) == LDNS_STATUS_OK) {
# 1055|   		ldns_rr_set_owner(question_rr, name_rdf);
# 1056|-> 		ldns_rr_set_type(question_rr, rr_type);
# 1057|   		ldns_rr_set_class(question_rr, rr_class);
# 1058|                   ldns_rr_set_question(question_rr, true);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def813]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1056:17: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1023:1: enter_function: entry to 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1032:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1042:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1047:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1054:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1055:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1056:17: danger: 'ldns_pkt_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/3)
# 1054|   	if (ldns_str2rdf_dname(&name_rdf, name) == LDNS_STATUS_OK) {
# 1055|   		ldns_rr_set_owner(question_rr, name_rdf);
# 1056|-> 		ldns_rr_set_type(question_rr, rr_type);
# 1057|   		ldns_rr_set_class(question_rr, rr_class);
# 1058|                   ldns_rr_set_question(question_rr, true);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def814]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1057:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1023:1: enter_function: entry to 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1032:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1042:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1047:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1054:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1055:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1057:17: danger: '<unknown>' leaks here; was allocated at [(6)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/5)
# 1055|   		ldns_rr_set_owner(question_rr, name_rdf);
# 1056|   		ldns_rr_set_type(question_rr, rr_type);
# 1057|-> 		ldns_rr_set_class(question_rr, rr_class);
# 1058|                   ldns_rr_set_question(question_rr, true);
# 1059|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def815]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1057:17: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1023:1: enter_function: entry to 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1032:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1042:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1047:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1054:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1055:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1057:17: danger: 'ldns_pkt_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/3)
# 1055|   		ldns_rr_set_owner(question_rr, name_rdf);
# 1056|   		ldns_rr_set_type(question_rr, rr_type);
# 1057|-> 		ldns_rr_set_class(question_rr, rr_class);
# 1058|                   ldns_rr_set_question(question_rr, true);
# 1059|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def816]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1058:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1023:1: enter_function: entry to 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1032:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1042:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1047:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1054:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1055:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1058:17: danger: '<unknown>' leaks here; was allocated at [(6)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/5)
# 1056|   		ldns_rr_set_type(question_rr, rr_type);
# 1057|   		ldns_rr_set_class(question_rr, rr_class);
# 1058|->                 ldns_rr_set_question(question_rr, true);
# 1059|   
# 1060|   		ldns_pkt_push_rr(packet, LDNS_SECTION_QUESTION, question_rr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def817]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1058:17: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1023:1: enter_function: entry to 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1032:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1042:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1047:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1054:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1055:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1058:17: danger: 'ldns_pkt_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/3)
# 1056|   		ldns_rr_set_type(question_rr, rr_type);
# 1057|   		ldns_rr_set_class(question_rr, rr_class);
# 1058|->                 ldns_rr_set_question(question_rr, true);
# 1059|   
# 1060|   		ldns_pkt_push_rr(packet, LDNS_SECTION_QUESTION, question_rr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def818]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1062:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1023:1: enter_function: entry to 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1032:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1042:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1047:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1054:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1062:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1062:17: danger: '<unknown>' leaks here; was allocated at [(6)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/5)
# 1060|   		ldns_pkt_push_rr(packet, LDNS_SECTION_QUESTION, question_rr);
# 1061|   	} else {
# 1062|-> 		ldns_rr_free(question_rr);
# 1063|   		ldns_pkt_free(packet);
# 1064|   		return LDNS_STATUS_ERR;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def819]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1062:17: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1023:1: enter_function: entry to 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1031:18: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1032:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_frm_str_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:14: return_function: returning to 'ldns_pkt_query_new_frm_str_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1036:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1041:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1042:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1047:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1054:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1062:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1062:17: danger: 'ldns_pkt_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/3)
# 1060|   		ldns_pkt_push_rr(packet, LDNS_SECTION_QUESTION, question_rr);
# 1061|   	} else {
# 1062|-> 		ldns_rr_free(question_rr);
# 1063|   		ldns_pkt_free(packet);
# 1064|   		return LDNS_STATUS_ERR;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def820]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1107:1: enter_function: entry to 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1114:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: danger: '<unknown>' leaks here; was allocated at [(6)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/5)
# 1120|   	}
# 1121|   
# 1122|-> 	question_rr = ldns_rr_new();
# 1123|   	if (!question_rr) {
# 1124|   		ldns_pkt_free(packet);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def821]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1107:1: enter_function: entry to 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1114:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: danger: 'ldns_pkt_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/3)
# 1120|   	}
# 1121|   
# 1122|-> 	question_rr = ldns_rr_new();
# 1123|   	if (!question_rr) {
# 1124|   		ldns_pkt_free(packet);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def822]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1135:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1107:1: enter_function: entry to 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1114:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1123:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1128:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1135:9: danger: '<unknown>' leaks here; was allocated at [(6)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/5)
# 1133|   	}
# 1134|   
# 1135|-> 	ldns_rr_set_owner(question_rr, rr_name);
# 1136|   	ldns_rr_set_type(question_rr, rr_type);
# 1137|   	ldns_rr_set_class(question_rr, rr_class);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def823]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1135:9: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1107:1: enter_function: entry to 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1114:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1123:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1128:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1135:9: danger: 'ldns_pkt_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/3)
# 1133|   	}
# 1134|   
# 1135|-> 	ldns_rr_set_owner(question_rr, rr_name);
# 1136|   	ldns_rr_set_type(question_rr, rr_type);
# 1137|   	ldns_rr_set_class(question_rr, rr_class);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def824]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1136:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1107:1: enter_function: entry to 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1114:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1123:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1128:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1136:9: danger: '<unknown>' leaks here; was allocated at [(6)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/5)
# 1134|   
# 1135|   	ldns_rr_set_owner(question_rr, rr_name);
# 1136|-> 	ldns_rr_set_type(question_rr, rr_type);
# 1137|   	ldns_rr_set_class(question_rr, rr_class);
# 1138|           ldns_rr_set_question(question_rr, true);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def825]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1136:9: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1107:1: enter_function: entry to 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1114:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1123:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1128:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1136:9: danger: 'ldns_pkt_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/3)
# 1134|   
# 1135|   	ldns_rr_set_owner(question_rr, rr_name);
# 1136|-> 	ldns_rr_set_type(question_rr, rr_type);
# 1137|   	ldns_rr_set_class(question_rr, rr_class);
# 1138|           ldns_rr_set_question(question_rr, true);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def826]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1137:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1107:1: enter_function: entry to 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1114:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1123:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1128:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1137:9: danger: '<unknown>' leaks here; was allocated at [(6)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/5)
# 1135|   	ldns_rr_set_owner(question_rr, rr_name);
# 1136|   	ldns_rr_set_type(question_rr, rr_type);
# 1137|-> 	ldns_rr_set_class(question_rr, rr_class);
# 1138|           ldns_rr_set_question(question_rr, true);
# 1139|   	ldns_pkt_push_rr(packet, LDNS_SECTION_QUESTION, question_rr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def827]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1137:9: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1107:1: enter_function: entry to 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1114:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1123:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1128:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1137:9: danger: 'ldns_pkt_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/3)
# 1135|   	ldns_rr_set_owner(question_rr, rr_name);
# 1136|   	ldns_rr_set_type(question_rr, rr_type);
# 1137|-> 	ldns_rr_set_class(question_rr, rr_class);
# 1138|           ldns_rr_set_question(question_rr, true);
# 1139|   	ldns_pkt_push_rr(packet, LDNS_SECTION_QUESTION, question_rr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def828]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1138:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1107:1: enter_function: entry to 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1114:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1123:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1128:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1138:9: danger: '<unknown>' leaks here; was allocated at [(6)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/5)
# 1136|   	ldns_rr_set_type(question_rr, rr_type);
# 1137|   	ldns_rr_set_class(question_rr, rr_class);
# 1138|->         ldns_rr_set_question(question_rr, true);
# 1139|   	ldns_pkt_push_rr(packet, LDNS_SECTION_QUESTION, question_rr);
# 1140|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def829]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1138:9: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1107:1: enter_function: entry to 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1113:18: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1114:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: call_function: calling 'ldns_pkt_set_flags' from 'ldns_pkt_query_new_internal'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:14: return_function: returning to 'ldns_pkt_query_new_internal' from 'ldns_pkt_set_flags'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1118:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1122:23: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1123:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1128:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1138:9: danger: 'ldns_pkt_new()' leaks here; was allocated at [(4)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/3)
# 1136|   	ldns_rr_set_type(question_rr, rr_type);
# 1137|   	ldns_rr_set_class(question_rr, rr_class);
# 1138|->         ldns_rr_set_question(question_rr, true);
# 1139|   	ldns_pkt_push_rr(packet, LDNS_SECTION_QUESTION, question_rr);
# 1140|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def830]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1240:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1241:40: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1240:17: danger: '<unknown>' leaks here; was allocated at [(8)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/7)
# 1238|   	ldns_pkt_set_arcount(new_pkt, ldns_pkt_arcount(pkt));
# 1239|   	if (ldns_pkt_answerfrom(pkt))
# 1240|-> 		ldns_pkt_set_answerfrom(new_pkt,
# 1241|   			ldns_rdf_clone(ldns_pkt_answerfrom(pkt)));
# 1242|   	ldns_pkt_set_timestamp(new_pkt, ldns_pkt_timestamp(pkt));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def831]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1240:17: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1241:40: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1240:17: danger: 'ldns_pkt_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/5)
# 1238|   	ldns_pkt_set_arcount(new_pkt, ldns_pkt_arcount(pkt));
# 1239|   	if (ldns_pkt_answerfrom(pkt))
# 1240|-> 		ldns_pkt_set_answerfrom(new_pkt,
# 1241|   			ldns_rdf_clone(ldns_pkt_answerfrom(pkt)));
# 1242|   	ldns_pkt_set_timestamp(new_pkt, ldns_pkt_timestamp(pkt));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def832]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1245:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1245:9: danger: '<unknown>' leaks here; was allocated at [(8)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/7)
# 1243|   	ldns_pkt_set_querytime(new_pkt, ldns_pkt_querytime(pkt));
# 1244|   	ldns_pkt_set_size(new_pkt, ldns_pkt_size(pkt));
# 1245|-> 	ldns_pkt_set_tsig(new_pkt, ldns_rr_clone(ldns_pkt_tsig(pkt)));
# 1246|   	
# 1247|   	ldns_pkt_set_edns_udp_size(new_pkt, ldns_pkt_edns_udp_size(pkt));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def833]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1245:9: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1245:9: danger: 'ldns_pkt_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/5)
# 1243|   	ldns_pkt_set_querytime(new_pkt, ldns_pkt_querytime(pkt));
# 1244|   	ldns_pkt_set_size(new_pkt, ldns_pkt_size(pkt));
# 1245|-> 	ldns_pkt_set_tsig(new_pkt, ldns_rr_clone(ldns_pkt_tsig(pkt)));
# 1246|   	
# 1247|   	ldns_pkt_set_edns_udp_size(new_pkt, ldns_pkt_edns_udp_size(pkt));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def834]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1254:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1255:40: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1254:17: danger: '<unknown>' leaks here; was allocated at [(8)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/7)
# 1252|   	ldns_pkt_set_edns_z(new_pkt, ldns_pkt_edns_z(pkt));
# 1253|   	if(ldns_pkt_edns_data(pkt))
# 1254|-> 		ldns_pkt_set_edns_data(new_pkt, 
# 1255|   			ldns_rdf_clone(ldns_pkt_edns_data(pkt)));
# 1256|   	ldns_pkt_set_edns_do(new_pkt, ldns_pkt_edns_do(pkt));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def835]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1254:17: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1255:40: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1254:17: danger: 'ldns_pkt_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/5)
# 1252|   	ldns_pkt_set_edns_z(new_pkt, ldns_pkt_edns_z(pkt));
# 1253|   	if(ldns_pkt_edns_data(pkt))
# 1254|-> 		ldns_pkt_set_edns_data(new_pkt, 
# 1255|   			ldns_rdf_clone(ldns_pkt_edns_data(pkt)));
# 1256|   	ldns_pkt_set_edns_do(new_pkt, ldns_pkt_edns_do(pkt));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def836]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1258:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1258:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1258:17: danger: '<unknown>' leaks here; was allocated at [(8)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/7)
# 1256|   	ldns_pkt_set_edns_do(new_pkt, ldns_pkt_edns_do(pkt));
# 1257|   	if (pkt->_edns_list)
# 1258|-> 		ldns_pkt_set_edns_option_list(new_pkt,
# 1259|   			ldns_edns_option_list_clone(pkt->_edns_list));
# 1260|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def837]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1258:17: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1258:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1258:17: danger: 'ldns_pkt_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/5)
# 1256|   	ldns_pkt_set_edns_do(new_pkt, ldns_pkt_edns_do(pkt));
# 1257|   	if (pkt->_edns_list)
# 1258|-> 		ldns_pkt_set_edns_option_list(new_pkt,
# 1259|   			ldns_edns_option_list_clone(pkt->_edns_list));
# 1260|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def838]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: danger: '<unknown>' leaks here; was allocated at [(8)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/7)
# 1259|   			ldns_edns_option_list_clone(pkt->_edns_list));
# 1260|   
# 1261|-> 	ldns_rr_list_deep_free(new_pkt->_question);
# 1262|   	ldns_rr_list_deep_free(new_pkt->_answer);
# 1263|   	ldns_rr_list_deep_free(new_pkt->_authority);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def839]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: danger: 'ldns_pkt_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/5)
# 1259|   			ldns_edns_option_list_clone(pkt->_edns_list));
# 1260|   
# 1261|-> 	ldns_rr_list_deep_free(new_pkt->_question);
# 1262|   	ldns_rr_list_deep_free(new_pkt->_answer);
# 1263|   	ldns_rr_list_deep_free(new_pkt->_authority);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def840]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1262:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1262:9: danger: '<unknown>' leaks here; was allocated at [(8)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/7)
# 1260|   
# 1261|   	ldns_rr_list_deep_free(new_pkt->_question);
# 1262|-> 	ldns_rr_list_deep_free(new_pkt->_answer);
# 1263|   	ldns_rr_list_deep_free(new_pkt->_authority);
# 1264|   	ldns_rr_list_deep_free(new_pkt->_additional);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def841]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1262:9: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1262:9: danger: 'ldns_pkt_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/5)
# 1260|   
# 1261|   	ldns_rr_list_deep_free(new_pkt->_question);
# 1262|-> 	ldns_rr_list_deep_free(new_pkt->_answer);
# 1263|   	ldns_rr_list_deep_free(new_pkt->_authority);
# 1264|   	ldns_rr_list_deep_free(new_pkt->_additional);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def842]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1263:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1263:9: danger: '<unknown>' leaks here; was allocated at [(8)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/7)
# 1261|   	ldns_rr_list_deep_free(new_pkt->_question);
# 1262|   	ldns_rr_list_deep_free(new_pkt->_answer);
# 1263|-> 	ldns_rr_list_deep_free(new_pkt->_authority);
# 1264|   	ldns_rr_list_deep_free(new_pkt->_additional);
# 1265|   	new_pkt->_question = ldns_rr_list_clone(ldns_pkt_question(pkt));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def843]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1263:9: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1263:9: danger: 'ldns_pkt_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/5)
# 1261|   	ldns_rr_list_deep_free(new_pkt->_question);
# 1262|   	ldns_rr_list_deep_free(new_pkt->_answer);
# 1263|-> 	ldns_rr_list_deep_free(new_pkt->_authority);
# 1264|   	ldns_rr_list_deep_free(new_pkt->_additional);
# 1265|   	new_pkt->_question = ldns_rr_list_clone(ldns_pkt_question(pkt));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def844]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1264:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1264:9: danger: '<unknown>' leaks here; was allocated at [(8)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/7)
# 1262|   	ldns_rr_list_deep_free(new_pkt->_answer);
# 1263|   	ldns_rr_list_deep_free(new_pkt->_authority);
# 1264|-> 	ldns_rr_list_deep_free(new_pkt->_additional);
# 1265|   	new_pkt->_question = ldns_rr_list_clone(ldns_pkt_question(pkt));
# 1266|   	new_pkt->_answer = ldns_rr_list_clone(ldns_pkt_answer(pkt));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def845]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1264:9: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1264:9: danger: 'ldns_pkt_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/5)
# 1262|   	ldns_rr_list_deep_free(new_pkt->_answer);
# 1263|   	ldns_rr_list_deep_free(new_pkt->_authority);
# 1264|-> 	ldns_rr_list_deep_free(new_pkt->_additional);
# 1265|   	new_pkt->_question = ldns_rr_list_clone(ldns_pkt_question(pkt));
# 1266|   	new_pkt->_answer = ldns_rr_list_clone(ldns_pkt_answer(pkt));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def846]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1265:30: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1265:30: danger: '<unknown>' leaks here; was allocated at [(8)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/7)
# 1263|   	ldns_rr_list_deep_free(new_pkt->_authority);
# 1264|   	ldns_rr_list_deep_free(new_pkt->_additional);
# 1265|-> 	new_pkt->_question = ldns_rr_list_clone(ldns_pkt_question(pkt));
# 1266|   	new_pkt->_answer = ldns_rr_list_clone(ldns_pkt_answer(pkt));
# 1267|   	new_pkt->_authority = ldns_rr_list_clone(ldns_pkt_authority(pkt));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def847]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1265:30: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1265:30: danger: 'ldns_pkt_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/5)
# 1263|   	ldns_rr_list_deep_free(new_pkt->_authority);
# 1264|   	ldns_rr_list_deep_free(new_pkt->_additional);
# 1265|-> 	new_pkt->_question = ldns_rr_list_clone(ldns_pkt_question(pkt));
# 1266|   	new_pkt->_answer = ldns_rr_list_clone(ldns_pkt_answer(pkt));
# 1267|   	new_pkt->_authority = ldns_rr_list_clone(ldns_pkt_authority(pkt));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def848]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1266:28: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1266:28: danger: '<unknown>' leaks here; was allocated at [(8)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/7)
# 1264|   	ldns_rr_list_deep_free(new_pkt->_additional);
# 1265|   	new_pkt->_question = ldns_rr_list_clone(ldns_pkt_question(pkt));
# 1266|-> 	new_pkt->_answer = ldns_rr_list_clone(ldns_pkt_answer(pkt));
# 1267|   	new_pkt->_authority = ldns_rr_list_clone(ldns_pkt_authority(pkt));
# 1268|   	new_pkt->_additional = ldns_rr_list_clone(ldns_pkt_additional(pkt));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def849]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1266:28: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1266:28: danger: 'ldns_pkt_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/5)
# 1264|   	ldns_rr_list_deep_free(new_pkt->_additional);
# 1265|   	new_pkt->_question = ldns_rr_list_clone(ldns_pkt_question(pkt));
# 1266|-> 	new_pkt->_answer = ldns_rr_list_clone(ldns_pkt_answer(pkt));
# 1267|   	new_pkt->_authority = ldns_rr_list_clone(ldns_pkt_authority(pkt));
# 1268|   	new_pkt->_additional = ldns_rr_list_clone(ldns_pkt_additional(pkt));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def850]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1267:31: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1267:31: danger: '<unknown>' leaks here; was allocated at [(8)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/7)
# 1265|   	new_pkt->_question = ldns_rr_list_clone(ldns_pkt_question(pkt));
# 1266|   	new_pkt->_answer = ldns_rr_list_clone(ldns_pkt_answer(pkt));
# 1267|-> 	new_pkt->_authority = ldns_rr_list_clone(ldns_pkt_authority(pkt));
# 1268|   	new_pkt->_additional = ldns_rr_list_clone(ldns_pkt_additional(pkt));
# 1269|   	return new_pkt;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def851]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1267:31: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1267:31: danger: 'ldns_pkt_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/5)
# 1265|   	new_pkt->_question = ldns_rr_list_clone(ldns_pkt_question(pkt));
# 1266|   	new_pkt->_answer = ldns_rr_list_clone(ldns_pkt_answer(pkt));
# 1267|-> 	new_pkt->_authority = ldns_rr_list_clone(ldns_pkt_authority(pkt));
# 1268|   	new_pkt->_additional = ldns_rr_list_clone(ldns_pkt_additional(pkt));
# 1269|   	return new_pkt;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def852]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1268:32: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1268:32: danger: '<unknown>' leaks here; was allocated at [(8)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/7)
# 1266|   	new_pkt->_answer = ldns_rr_list_clone(ldns_pkt_answer(pkt));
# 1267|   	new_pkt->_authority = ldns_rr_list_clone(ldns_pkt_authority(pkt));
# 1268|-> 	new_pkt->_additional = ldns_rr_list_clone(ldns_pkt_additional(pkt));
# 1269|   	return new_pkt;
# 1270|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def853]
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1268:32: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_pkt_new()'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1216:1: enter_function: entry to 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1220:12: branch_false: following 'false' branch (when 'pkt' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: call_function: calling 'ldns_pkt_new' from 'ldns_pkt_clone'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1223:19: return_function: returning to 'ldns_pkt_clone' from 'ldns_pkt_new'
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1239:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1242:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1253:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1256:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1257:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1261:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/packet.c:1268:32: danger: 'ldns_pkt_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/5)
# 1266|   	new_pkt->_answer = ldns_rr_list_clone(ldns_pkt_answer(pkt));
# 1267|   	new_pkt->_authority = ldns_rr_list_clone(ldns_pkt_authority(pkt));
# 1268|-> 	new_pkt->_additional = ldns_rr_list_clone(ldns_pkt_additional(pkt));
# 1269|   	return new_pkt;
# 1270|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def854]
ldns-1.8.4/ldns-1.8.4_python3/parse.c:329:21: warning[-Wanalyzer-malloc-leak]: leak of 'fkeyword'
ldns-1.8.4/ldns-1.8.4_python3/parse.c:485:1: enter_function: entry to 'ldns_bget_keyword_data'
ldns-1.8.4/ldns-1.8.4_python3/parse.c:492:10: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/parse.c:494:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/parse.c:494:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/parse.c:495:10: branch_false: following 'false' branch (when 'fkeyword' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/parse.c:498:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/parse.c:498:12: call_function: calling 'ldns_bget_token' from 'ldns_bget_keyword_data'
#  327|   	}
#  328|   
#  329|-> 	while ((c = ldns_bgetc(b)) != EOF) {
#  330|   		if (c == '\r') /* carriage return */
#  331|   			c = ' ';

Error: GCC_ANALYZER_WARNING (CWE-401): [#def855]
ldns-1.8.4/ldns-1.8.4_python3/radix.c:185:17: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_radix_new_node(data,  key,  len)'
ldns-1.8.4/ldns-1.8.4_python3/radix.c:168:1: enter_function: entry to 'ldns_radix_insert'
ldns-1.8.4/ldns-1.8.4_python3/radix.c:178:15: call_function: calling 'ldns_radix_new_node' from 'ldns_radix_insert'
ldns-1.8.4/ldns-1.8.4_python3/radix.c:178:15: return_function: returning to 'ldns_radix_insert' from 'ldns_radix_new_node'
ldns-1.8.4/ldns-1.8.4_python3/radix.c:179:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/radix.c:183:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/radix.c:183:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/radix.c:185:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/radix.c:185:17: danger: 'ldns_radix_new_node(data,  key,  len)' leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#  183|   	if (!ldns_radix_find_prefix(tree, key, len, &prefix, &pos)) {
#  184|   		/** No prefix found */
#  185|-> 		assert(tree->root == NULL);
#  186|   		if (len == 0) {
#  187|   			/**

Error: GCC_ANALYZER_WARNING (CWE-401): [#def856]
ldns-1.8.4/ldns-1.8.4_python3/radix.c:792:27: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_radix_new_node(data,  key,  len)'
ldns-1.8.4/ldns-1.8.4_python3/radix.c:168:1: enter_function: entry to 'ldns_radix_insert'
ldns-1.8.4/ldns-1.8.4_python3/radix.c:178:15: call_function: calling 'ldns_radix_new_node' from 'ldns_radix_insert'
ldns-1.8.4/ldns-1.8.4_python3/radix.c:178:15: return_function: returning to 'ldns_radix_insert' from 'ldns_radix_new_node'
ldns-1.8.4/ldns-1.8.4_python3/radix.c:179:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/radix.c:183:14: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/radix.c:183:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/radix.c:226:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/radix.c:226:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/radix.c:238:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/radix.c:792:27: danger: 'ldns_radix_new_node(data,  key,  len)' leaks here; was allocated at [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3)
#  790|   			return 1;
#  791|   		}
#  792|-> 		byte = key[pos];
#  793|   		if (byte < n->offset) {
#  794|   			/** key < node */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def857]
ldns-1.8.4/ldns-1.8.4_python3/rbtree.c:526:21: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rbtree_create(*tree.cmp)'
ldns-1.8.4/ldns-1.8.4_python3/rbtree.c:620:1: enter_function: entry to 'ldns_rbtree_split'
ldns-1.8.4/ldns-1.8.4_python3/rbtree.c:628:20: call_function: calling 'ldns_rbtree_create' from 'ldns_rbtree_split'
ldns-1.8.4/ldns-1.8.4_python3/rbtree.c:628:20: return_function: returning to 'ldns_rbtree_split' from 'ldns_rbtree_create'
ldns-1.8.4/ldns-1.8.4_python3/rbtree.c:631:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rbtree.c:632:29: call_function: calling 'ldns_rbtree_delete' from 'ldns_rbtree_split'
#  524|   	/* While there are children... */
#  525|   	while (node != LDNS_RBTREE_NULL) {
#  526|-> 		r = rbtree->cmp(key, node->key);
#  527|   		if (r == 0) {
#  528|   			/* Exact match */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def858]
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:404:18: warning[-Wanalyzer-malloc-leak]: leak of 'line'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:398:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:399:12: branch_false: following 'false' branch (when 'line' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:404:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:404:18: danger: 'line' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  402|   
#  403|   	/* read an entire line in from the file */
#  404|-> 	if ((t = ldns_fget_token_l(fp, line, LDNS_PARSE_SKIP_SPACE, 0, line_nr)) == -1 || t == 0) {
#  405|   		LDNS_FREE(line);
#  406|   		return LDNS_STATUS_SYNTAX_RDATA_ERR;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def859]
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:462:38: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:419:1: enter_function: entry to 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:434:13: call_function: calling 'ldns_rdf_get_type' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:434:13: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_get_type'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:442:16: call_function: calling 'ldns_rdf_get_type' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:442:16: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_get_type'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:445:53: call_function: calling 'ldns_rdf_data' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:445:53: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_data'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:446:36: call_function: calling 'ldns_rdf_data' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:446:36: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_data'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:447:36: call_function: calling 'ldns_rdf_data' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:447:36: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_data'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:448:36: call_function: calling 'ldns_rdf_data' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:448:36: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_data'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:450:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:454:31: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:454:31: call_function: calling 'ldns_rdf_new_frm_data' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:454:31: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_new_frm_data'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:456:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:462:38: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:462:38: danger: '<unknown>' leaks here; was allocated at [(42)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/41)
#  460|   
#  461|   			/* convert rev to a string */
#  462|-> 			char_dname = ldns_rdf2str(rev);
#  463|   			if (!char_dname) {
#  464|   				LDNS_FREE(in_addr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def860]
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:462:38: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf_new_frm_data(5, 4, &buf_4)'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:419:1: enter_function: entry to 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:434:13: call_function: calling 'ldns_rdf_get_type' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:434:13: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_get_type'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:442:16: call_function: calling 'ldns_rdf_get_type' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:442:16: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_get_type'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:445:53: call_function: calling 'ldns_rdf_data' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:445:53: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_data'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:446:36: call_function: calling 'ldns_rdf_data' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:446:36: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_data'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:447:36: call_function: calling 'ldns_rdf_data' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:447:36: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_data'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:448:36: call_function: calling 'ldns_rdf_data' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:448:36: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_data'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:450:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:454:31: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:454:31: call_function: calling 'ldns_rdf_new_frm_data' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:454:31: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_new_frm_data'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:456:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:462:38: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:462:38: danger: 'ldns_rdf_new_frm_data(5, 4, &buf_4)' leaks here; was allocated at [(40)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/39)
#  460|   
#  461|   			/* convert rev to a string */
#  462|-> 			char_dname = ldns_rdf2str(rev);
#  463|   			if (!char_dname) {
#  464|   				LDNS_FREE(in_addr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def861]
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:469:37: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rdf_new_frm_data(5, 4, &buf_4)'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:419:1: enter_function: entry to 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:434:13: call_function: calling 'ldns_rdf_get_type' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:434:13: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_get_type'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:442:16: call_function: calling 'ldns_rdf_get_type' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:442:16: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_get_type'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:445:53: call_function: calling 'ldns_rdf_data' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:445:53: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_data'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:446:36: call_function: calling 'ldns_rdf_data' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:446:36: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_data'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:447:36: call_function: calling 'ldns_rdf_data' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:447:36: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_data'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:448:36: call_function: calling 'ldns_rdf_data' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:448:36: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_data'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:450:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:454:31: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:454:31: call_function: calling 'ldns_rdf_new_frm_data' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:454:31: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_new_frm_data'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:456:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:462:38: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:463:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:469:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:469:37: danger: 'ldns_rdf_new_frm_data(5, 4, &buf_4)' leaks here; was allocated at [(40)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/39)
#  467|   			}
#  468|   			/* transform back to rdf with type dname */
#  469|-> 			ret_dname = ldns_dname_new_frm_str(char_dname);
#  470|   			if (!ret_dname) {
#  471|   				LDNS_FREE(in_addr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def862]
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:511:35: warning[-Wanalyzer-malloc-leak]: leak of 'char_dname'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:419:1: enter_function: entry to 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:434:13: call_function: calling 'ldns_rdf_get_type' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:434:13: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_get_type'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:435:25: call_function: calling 'ldns_rdf_get_type' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:435:25: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_get_type'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:434:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:442:16: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:442:16: call_function: calling 'ldns_rdf_get_type' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:442:16: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_get_type'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:483:42: branch_true: following 'true' branch (when 'nbit != -1')...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:485:43: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:489:43: call_function: calling 'ldns_rdf_data' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:489:43: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_data'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:498:38: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:499:28: branch_false: following 'false' branch (when 'char_dname' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:502:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:505:44: branch_true: following 'true' branch (when 'i != 32')...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:506:55: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:507:36: branch_true: following 'true' branch (when 'i != 31')...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:508:52: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:511:35: danger: 'char_dname' leaks here; was allocated at [(28)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/27)
#  509|   				}
#  510|   			}
#  511|-> 			in_addr = ldns_dname_new_frm_str("ip6.arpa.");
#  512|   			if (!in_addr) {
#  513|   				LDNS_FREE(char_dname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def863]
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:518:37: warning[-Wanalyzer-malloc-leak]: leak of 'char_dname'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:419:1: enter_function: entry to 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:434:13: call_function: calling 'ldns_rdf_get_type' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:434:13: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_get_type'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:435:25: call_function: calling 'ldns_rdf_get_type' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:435:25: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_get_type'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:434:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:442:16: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:442:16: call_function: calling 'ldns_rdf_get_type' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:442:16: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_get_type'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:483:42: branch_true: following 'true' branch (when 'nbit != -1')...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:485:43: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:489:43: call_function: calling 'ldns_rdf_data' from 'ldns_rdf_address_reverse'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:489:43: return_function: returning to 'ldns_rdf_address_reverse' from 'ldns_rdf_data'
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:498:38: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:499:28: branch_false: following 'false' branch (when 'char_dname' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:502:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:505:44: branch_true: following 'true' branch (when 'i != 32')...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:506:55: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:507:36: branch_true: following 'true' branch (when 'i != 31')...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:508:52: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:512:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:518:37: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rdata.c:518:37: danger: 'char_dname' leaks here; was allocated at [(28)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/27)
#  516|   
#  517|   			/* convert rev to a string */
#  518|-> 			ret_dname = ldns_dname_new_frm_str(char_dname);
#  519|   			LDNS_FREE(char_dname);
#  520|   			if (!ret_dname) {

Error: CPPCHECK_WARNING (CWE-401): [#def864]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:275: error[memleakOnRealloc]: Common realloc mistake: 'nameservers' nulled but not freed upon failure
#  273|   		ldns_resolver_set_rtt(r, NULL);
#  274|   	} else {
#  275|-> 		nameservers = LDNS_XREALLOC(nameservers, ldns_rdf *, 
#  276|   				(ns_count - 1));
#  277|   		rtt = LDNS_XREALLOC(rtt, size_t, (ns_count - 1));

Error: CPPCHECK_WARNING (CWE-401): [#def865]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:277: error[memleakOnRealloc]: Common realloc mistake: 'rtt' nulled but not freed upon failure
#  275|   		nameservers = LDNS_XREALLOC(nameservers, ldns_rdf *, 
#  276|   				(ns_count - 1));
#  277|-> 		rtt = LDNS_XREALLOC(rtt, size_t, (ns_count - 1));
#  278|   
#  279|   	        ldns_resolver_set_nameservers(r, nameservers);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def866]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:294:13: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  292|   	size_t *rtt;
#  293|   
#  294|-> 	if (ldns_rdf_get_type(n) != LDNS_RDF_TYPE_A &&
#  295|   			ldns_rdf_get_type(n) != LDNS_RDF_TYPE_AAAA) {
#  296|   		return LDNS_STATUS_ERR;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def867]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:295:25: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  293|   
#  294|   	if (ldns_rdf_get_type(n) != LDNS_RDF_TYPE_A &&
#  295|-> 			ldns_rdf_get_type(n) != LDNS_RDF_TYPE_AAAA) {
#  296|   		return LDNS_STATUS_ERR;
#  297|   	}

Error: CPPCHECK_WARNING (CWE-401): [#def868]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:307: error[memleakOnRealloc]: Common realloc mistake: 'nameservers' nulled but not freed upon failure
#  305|   		nameservers = LDNS_XMALLOC(ldns_rdf *, 1);
#  306|   	} else {
#  307|-> 		nameservers = LDNS_XREALLOC(nameservers, ldns_rdf *, (ns_count + 1));
#  308|   	}
#  309|           if(!nameservers)

Error: CPPCHECK_WARNING (CWE-401): [#def869]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:319: error[memleakOnRealloc]: Common realloc mistake: 'rtt' nulled but not freed upon failure
#  317|   		rtt = LDNS_XMALLOC(size_t, 1);
#  318|   	} else {
#  319|-> 		rtt = LDNS_XREALLOC(rtt, size_t, (ns_count + 1));
#  320|   	}
#  321|           if(!rtt)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def870]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:327:33: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  325|   	/* we clone it here, because then we can free the original
#  326|   	 * rr's where it stood */
#  327|-> 	nameservers[ns_count] = ldns_rdf_clone(n);
#  328|   	rtt[ns_count] = LDNS_RESOLV_RTT_MIN;
#  329|   	ldns_resolver_incr_nameserver_count(r);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def871]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:327:33: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  325|   	/* we clone it here, because then we can free the original
#  326|   	 * rr's where it stood */
#  327|-> 	nameservers[ns_count] = ldns_rdf_clone(n);
#  328|   	rtt[ns_count] = LDNS_RESOLV_RTT_MIN;
#  329|   	ldns_resolver_incr_nameserver_count(r);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def872]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:327:33: warning[-Wanalyzer-malloc-leak]: leak of 'rtt'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  325|   	/* we clone it here, because then we can free the original
#  326|   	 * rr's where it stood */
#  327|-> 	nameservers[ns_count] = ldns_rdf_clone(n);
#  328|   	rtt[ns_count] = LDNS_RESOLV_RTT_MIN;
#  329|   	ldns_resolver_incr_nameserver_count(r);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def873]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:407:17: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  405|     ldns_rr_list * trust_anchors;
#  406|   
#  407|->   if ((!rr) || (ldns_rr_get_type(rr) != LDNS_RR_TYPE_DNSKEY &&
#  408|                   ldns_rr_get_type(rr) != LDNS_RR_TYPE_DS)) {
#  409|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def874]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:408:17: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  406|   
#  407|     if ((!rr) || (ldns_rr_get_type(rr) != LDNS_RR_TYPE_DNSKEY &&
#  408|->                 ldns_rr_get_type(rr) != LDNS_RR_TYPE_DS)) {
#  409|   
#  410|       return LDNS_STATUS_ERR;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def875]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:414:21: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  412|   
#  413|     if (!(trust_anchors = ldns_resolver_dnssec_anchors(r))) { /* Initialize */
#  414|->     trust_anchors = ldns_rr_list_new();
#  415|       ldns_resolver_set_dnssec_anchors(r, trust_anchors);
#  416|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def876]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:418:10: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  416|     }
#  417|   
#  418|->   return (ldns_rr_list_push_rr(trust_anchors, ldns_rr_clone(rr))) ? LDNS_STATUS_OK : LDNS_STATUS_ERR;
#  419|   }
#  420|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def877]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:418:47: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  416|     }
#  417|   
#  418|->   return (ldns_rr_list_push_rr(trust_anchors, ldns_rr_clone(rr))) ? LDNS_STATUS_OK : LDNS_STATUS_ERR;
#  419|   }
#  420|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def878]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:563:13: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  561|   	size_t list_count;
#  562|   
#  563|-> 	if (ldns_rdf_get_type(d) != LDNS_RDF_TYPE_DNAME) {
#  564|   		return;
#  565|   	}

Error: CPPCHECK_WARNING (CWE-401): [#def879]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:570: error[memleakOnRealloc]: Common realloc mistake: 'searchlist' nulled but not freed upon failure
#  568|   	searchlist = ldns_resolver_searchlist(r);
#  569|   
#  570|-> 	searchlist = LDNS_XREALLOC(searchlist, ldns_rdf *, (list_count + 1));
#  571|   	if (searchlist) {
#  572|   		r->_searchlist = searchlist;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def880]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:574:42: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  572|   		r->_searchlist = searchlist;
#  573|   
#  574|-> 		searchlist[list_count] = ldns_rdf_clone(d);
#  575|   		ldns_resolver_set_searchlist_count(r, list_count + 1);
#  576|   	} /* no way to report mem err */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def881]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:574:42: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  572|   		r->_searchlist = searchlist;
#  573|   
#  574|-> 		searchlist[list_count] = ldns_rdf_clone(d);
#  575|   		ldns_resolver_set_searchlist_count(r, list_count + 1);
#  576|   	} /* no way to report mem err */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def882]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:817:39: warning[-Wanalyzer-file-leak]: leak of FILE 'fp'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  815|   			case LDNS_RESOLV_KEYWORD:
#  816|   				/* keyword */
#  817|-> 				gtr = ldns_fget_token_l_resolv_conf(myfp, word, LDNS_PARSE_NORMAL, 0, line_nr);
#  818|   				if (gtr != 0) {
#  819|   					for(i = 0; i < LDNS_RESOLV_KEYWORDS; i++) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def883]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:817:39: warning[-Wanalyzer-file-leak]: leak of FILE 'myfp'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:765:1: enter_function: entry to 'ldns_resolver_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:782:11: branch_true: following 'true' branch (when 'fp' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:783:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:783:24: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:784:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:796:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:804:13: call_function: calling 'ldns_resolver_new' from 'ldns_resolver_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:804:13: return_function: returning to 'ldns_resolver_new_frm_fp_l' from 'ldns_resolver_new'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:805:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:811:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:813:16: branch_true: following 'true' branch (when 'gtr > 0')...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:814:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:817:39: danger: 'myfp' leaks here; was opened at [(4)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/3)
#  815|   			case LDNS_RESOLV_KEYWORD:
#  816|   				/* keyword */
#  817|-> 				gtr = ldns_fget_token_l_resolv_conf(myfp, word, LDNS_PARSE_NORMAL, 0, line_nr);
#  818|   				if (gtr != 0) {
#  819|   					for(i = 0; i < LDNS_RESOLV_KEYWORDS; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def884]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:817:39: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  815|   			case LDNS_RESOLV_KEYWORD:
#  816|   				/* keyword */
#  817|-> 				gtr = ldns_fget_token_l_resolv_conf(myfp, word, LDNS_PARSE_NORMAL, 0, line_nr);
#  818|   				if (gtr != 0) {
#  819|   					for(i = 0; i < LDNS_RESOLV_KEYWORDS; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def885]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:817:39: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:765:1: enter_function: entry to 'ldns_resolver_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:782:11: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:796:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:804:13: call_function: calling 'ldns_resolver_new' from 'ldns_resolver_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:804:13: return_function: returning to 'ldns_resolver_new_frm_fp_l' from 'ldns_resolver_new'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:805:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:811:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:813:16: branch_true: following 'true' branch (when 'gtr > 0')...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:814:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:817:39: danger: 'ldns_resolver_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/5)
#  815|   			case LDNS_RESOLV_KEYWORD:
#  816|   				/* keyword */
#  817|-> 				gtr = ldns_fget_token_l_resolv_conf(myfp, word, LDNS_PARSE_NORMAL, 0, line_nr);
#  818|   				if (gtr != 0) {
#  819|   					for(i = 0; i < LDNS_RESOLV_KEYWORDS; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def886]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:817:39: warning[-Wanalyzer-malloc-leak]: leak of 'myfp'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:765:1: enter_function: entry to 'ldns_resolver_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:782:11: branch_true: following 'true' branch (when 'fp' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:783:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:783:24: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:784:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:796:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:804:13: call_function: calling 'ldns_resolver_new' from 'ldns_resolver_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:804:13: return_function: returning to 'ldns_resolver_new_frm_fp_l' from 'ldns_resolver_new'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:805:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:811:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:813:16: branch_true: following 'true' branch (when 'gtr > 0')...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:814:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:817:39: danger: 'myfp' leaks here; was allocated at [(4)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/3)
#  815|   			case LDNS_RESOLV_KEYWORD:
#  816|   				/* keyword */
#  817|-> 				gtr = ldns_fget_token_l_resolv_conf(myfp, word, LDNS_PARSE_NORMAL, 0, line_nr);
#  818|   				if (gtr != 0) {
#  819|   					for(i = 0; i < LDNS_RESOLV_KEYWORDS; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def887]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:841:39: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  839|   			case LDNS_RESOLV_DEFDOMAIN:
#  840|   				/* default domain dname */
#  841|-> 				gtr = ldns_fget_token_l_resolv_conf(myfp, word, LDNS_PARSE_NORMAL, 0, line_nr);
#  842|   				if (gtr == 0) {
#  843|   					if(!fp) fclose(myfp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def888]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:847:39: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  845|   					return LDNS_STATUS_SYNTAX_MISSING_VALUE_ERR;
#  846|   				}
#  847|-> 				tmp = ldns_rdf_new_frm_str(LDNS_RDF_TYPE_DNAME, word);
#  848|   				if (!tmp) {
#  849|   					if(!fp) fclose(myfp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def889]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:860:39: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  858|   			case LDNS_RESOLV_NAMESERVER:
#  859|   				/* NS aaaa or a record */
#  860|-> 				gtr = ldns_fget_token_l_resolv_conf(myfp, word, LDNS_PARSE_NORMAL, 0, line_nr);
#  861|   				if (gtr == 0) {
#  862|   					if(!fp) fclose(myfp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def890]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:871:39: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  869|                                           strchr(word, '%')[0]=0;
#  870|                                   }
#  871|-> 				tmp = ldns_rdf_new_frm_str(LDNS_RDF_TYPE_AAAA, word);
#  872|   				if (!tmp) {
#  873|   					/* try ip4 */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def891]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:874:47: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  872|   				if (!tmp) {
#  873|   					/* try ip4 */
#  874|-> 					tmp = ldns_rdf_new_frm_str(LDNS_RDF_TYPE_A, word);
#  875|   				}
#  876|   				/* could not parse it, exit */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def892]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:883:33: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  881|   				}
#  882|   				(void)ldns_resolver_push_nameserver(r, tmp);
#  883|-> 				ldns_rdf_deep_free(tmp);
#  884|   				expect = LDNS_RESOLV_KEYWORD;
#  885|   				break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def893]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:883:33: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  881|   				}
#  882|   				(void)ldns_resolver_push_nameserver(r, tmp);
#  883|-> 				ldns_rdf_deep_free(tmp);
#  884|   				expect = LDNS_RESOLV_KEYWORD;
#  885|   				break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def894]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:888:39: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  886|   			case LDNS_RESOLV_SEARCH:
#  887|   				/* search list domain dname */
#  888|-> 				gtr = ldns_fget_token_l_resolv_conf(myfp, word, LDNS_PARSE_SKIP_SPACE, 0, line_nr);
#  889|   				b = LDNS_MALLOC(ldns_buffer);
#  890|   				if(!b) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def895]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:896:33: warning[-Wanalyzer-malloc-leak]: leak of 'b'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  894|   				}
#  895|   
#  896|-> 				ldns_buffer_new_frm_data(b, word, (size_t) gtr);
#  897|   				if(ldns_buffer_status(b) != LDNS_STATUS_OK) {
#  898|   					LDNS_FREE(b);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def896]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:896:33: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  894|   				}
#  895|   
#  896|-> 				ldns_buffer_new_frm_data(b, word, (size_t) gtr);
#  897|   				if(ldns_buffer_status(b) != LDNS_STATUS_OK) {
#  898|   					LDNS_FREE(b);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def897]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:903:40: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  901|   					return LDNS_STATUS_MEM_ERR;
#  902|   				}
#  903|-> 				bgtr = ldns_bget_token(b, word, LDNS_PARSE_NORMAL, (size_t) gtr + 1);
#  904|   				while (bgtr > 0) {
#  905|   					gtr -= bgtr;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def898]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:906:47: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  904|   				while (bgtr > 0) {
#  905|   					gtr -= bgtr;
#  906|-> 					tmp = ldns_rdf_new_frm_str(LDNS_RDF_TYPE_DNAME, word);
#  907|   					if (!tmp) {
#  908|   						ldns_resolver_deep_free(r);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def899]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:906:47: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  904|   				while (bgtr > 0) {
#  905|   					gtr -= bgtr;
#  906|-> 					tmp = ldns_rdf_new_frm_str(LDNS_RDF_TYPE_DNAME, word);
#  907|   					if (!tmp) {
#  908|   						ldns_resolver_deep_free(r);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def900]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:910:51: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  908|   						ldns_resolver_deep_free(r);
#  909|   						ldns_buffer_free(b);
#  910|-> 						if(!fp) fclose(myfp);
#  911|   						return LDNS_STATUS_SYNTAX_DNAME_ERR;
#  912|   					}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def901]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:910:51: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  908|   						ldns_resolver_deep_free(r);
#  909|   						ldns_buffer_free(b);
#  910|-> 						if(!fp) fclose(myfp);
#  911|   						return LDNS_STATUS_SYNTAX_DNAME_ERR;
#  912|   					}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def902]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:916:41: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  914|   					ldns_resolver_push_searchlist(r, tmp);
#  915|   
#  916|-> 					ldns_rdf_deep_free(tmp);
#  917|   					bgtr = ldns_bget_token(b, word, LDNS_PARSE_NORMAL,
#  918|   					    (size_t) gtr + 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def903]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:916:41: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  914|   					ldns_resolver_push_searchlist(r, tmp);
#  915|   
#  916|-> 					ldns_rdf_deep_free(tmp);
#  917|   					bgtr = ldns_bget_token(b, word, LDNS_PARSE_NORMAL,
#  918|   					    (size_t) gtr + 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def904]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:917:48: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  915|   
#  916|   					ldns_rdf_deep_free(tmp);
#  917|-> 					bgtr = ldns_bget_token(b, word, LDNS_PARSE_NORMAL,
#  918|   					    (size_t) gtr + 1);
#  919|   				}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def905]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:917:48: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  915|   
#  916|   					ldns_rdf_deep_free(tmp);
#  917|-> 					bgtr = ldns_bget_token(b, word, LDNS_PARSE_NORMAL,
#  918|   					    (size_t) gtr + 1);
#  919|   				}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def906]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:920:33: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  918|   					    (size_t) gtr + 1);
#  919|   				}
#  920|-> 				ldns_buffer_free(b);
#  921|   				if (expect != LDNS_RESOLV_KEYWORD) {
#  922|   					gtr = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def907]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:920:33: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  918|   					    (size_t) gtr + 1);
#  919|   				}
#  920|-> 				ldns_buffer_free(b);
#  921|   				if (expect != LDNS_RESOLV_KEYWORD) {
#  922|   					gtr = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def908]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:927:39: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  925|   				break;
#  926|   			case LDNS_RESOLV_SORTLIST:
#  927|-> 				gtr = ldns_fget_token_l_resolv_conf(myfp, word, LDNS_PARSE_SKIP_SPACE, 0, line_nr);
#  928|   				/* sortlist not implemented atm */
#  929|   				expect = LDNS_RESOLV_KEYWORD;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def909]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:932:39: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  930|   				break;
#  931|   			case LDNS_RESOLV_OPTIONS:
#  932|-> 				gtr = ldns_fget_token_l_resolv_conf(myfp, word, LDNS_PARSE_SKIP_SPACE, 0, line_nr);
#  933|   				/* options not implemented atm */
#  934|   				expect = LDNS_RESOLV_KEYWORD;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def910]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:938:39: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  936|   			case LDNS_RESOLV_ANCHOR:
#  937|   				/* a file containing a DNSSEC trust anchor */
#  938|-> 				gtr = ldns_fget_token_l_resolv_conf(myfp, word, LDNS_PARSE_NORMAL, 0, line_nr);
#  939|   				if (gtr == 0) {
#  940|   					ldns_resolver_deep_free(r);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def911]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:945:42: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  943|   				}
#  944|   #ifdef HAVE_SSL
#  945|-> 				tmp_rr = ldns_read_anchor_file(word);
#  946|   				(void) ldns_resolver_push_dnssec_anchor(r, tmp_rr);
#  947|   				ldns_rr_free(tmp_rr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def912]
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:947:33: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_resolver_new()'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:967:1: enter_function: entry to 'ldns_resolver_new_frm_file'
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:973:12: branch_true: following 'true' branch (when 'filename' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:974:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:979:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/resolver.c:983:13: call_function: calling 'ldns_resolver_new_frm_fp' from 'ldns_resolver_new_frm_file'
#  945|   				tmp_rr = ldns_read_anchor_file(word);
#  946|   				(void) ldns_resolver_push_dnssec_anchor(r, tmp_rr);
#  947|-> 				ldns_rr_free(tmp_rr);
#  948|   #endif
#  949|   				expect = LDNS_RESOLV_KEYWORD;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def913]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:822:9: warning[-Wanalyzer-null-dereference]: dereference of NULL 'rr'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1714:1: enter_function: entry to 'ldns_rr_compare_ds'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1717:24: call_function: calling 'ldns_rr_clone' from 'ldns_rr_compare_ds'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1717:24: return_function: returning to 'ldns_rr_compare_ds' from 'ldns_rr_clone'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1718:24: call_function: calling 'ldns_rr_clone' from 'ldns_rr_compare_ds'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1718:24: return_function: returning to 'ldns_rr_compare_ds' from 'ldns_rr_clone'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1721:9: call_function: calling 'ldns_rr_set_ttl' from 'ldns_rr_compare_ds'
#  820|   ldns_rr_set_ttl(ldns_rr *rr, uint32_t ttl)
#  821|   {
#  822|-> 	rr->_ttl = ttl;
#  823|   }
#  824|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def914]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:925:16: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rr_clone(*sa.original_object)'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1465:1: enter_function: entry to 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: call_function: calling 'ldns_rr_compare_no_rdata' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_compare_no_rdata'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1483:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:53: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:39: call_function: calling 'ldns_rr_clone' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:39: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_clone'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1486:25: call_function: calling 'ldns_rr2canonical' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1486:25: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr2canonical'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1487:50: call_function: calling 'ldns_rr_uncompressed_size' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1487:50: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_uncompressed_size'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1488:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1494:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1494:25: call_function: calling 'ldns_rr_free' from 'qsort_schwartz_rr_compare'
#  923|   ldns_rr_owner(const ldns_rr *rr)
#  924|   {
#  925|-> 	return rr->_owner;
#  926|   }
#  927|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def915]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:925:16: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rr_clone(*sb.original_object)'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1465:1: enter_function: entry to 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: call_function: calling 'ldns_rr_compare_no_rdata' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_compare_no_rdata'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1483:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1496:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:53: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:39: call_function: calling 'ldns_rr_clone' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:39: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_clone'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1498:25: call_function: calling 'ldns_rr2canonical' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1498:25: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr2canonical'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1499:50: call_function: calling 'ldns_rr_uncompressed_size' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1499:50: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_uncompressed_size'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1500:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1501:65: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1505:33: call_function: calling 'ldns_rr_free' from 'qsort_schwartz_rr_compare'
#  923|   ldns_rr_owner(const ldns_rr *rr)
#  924|   {
#  925|-> 	return rr->_owner;
#  926|   }
#  927|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def916]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:925:16: warning[-Wanalyzer-null-dereference]: dereference of NULL 'rr'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2789:1: enter_function: entry to 'ldns_rr_list_owner'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2791:12: branch_true: following 'true' branch (when 'rr_list' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2791:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2791:24: call_function: calling 'ldns_rr_list_rr_count' from 'ldns_rr_list_owner'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2791:24: return_function: returning to 'ldns_rr_list_owner' from 'ldns_rr_list_rr_count'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2791:13: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2792:38: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2792:38: call_function: calling 'ldns_rr_list_rr' from 'ldns_rr_list_owner'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2792:38: return_function: returning to 'ldns_rr_list_owner' from 'ldns_rr_list_rr'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2792:24: call_function: calling 'ldns_rr_owner' from 'ldns_rr_list_owner'
#  923|   ldns_rr_owner(const ldns_rr *rr)
#  924|   {
#  925|-> 	return rr->_owner;
#  926|   }
#  927|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def917]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:943:16: warning[-Wanalyzer-null-dereference]: dereference of NULL 'rr'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1465:1: enter_function: entry to 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: call_function: calling 'ldns_rr_compare_no_rdata' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_compare_no_rdata'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1483:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:53: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:39: call_function: calling 'ldns_rr_clone' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:39: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_clone'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1486:25: call_function: calling 'ldns_rr2canonical' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1486:25: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr2canonical'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1487:50: call_function: calling 'ldns_rr_uncompressed_size' from 'qsort_schwartz_rr_compare'
#  941|   ldns_rr_rd_count(const ldns_rr *rr)
#  942|   {
#  943|-> 	return rr->_rd_count;
#  944|   }
#  945|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def918]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:949:16: warning[-Wanalyzer-null-dereference]: dereference of NULL 'rr'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2779:1: enter_function: entry to 'ldns_rr_list_type'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2781:12: branch_true: following 'true' branch (when 'rr_list' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2781:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2781:24: call_function: calling 'ldns_rr_list_rr_count' from 'ldns_rr_list_type'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2781:24: return_function: returning to 'ldns_rr_list_type' from 'ldns_rr_list_rr_count'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2781:13: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2782:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2782:41: call_function: calling 'ldns_rr_list_rr' from 'ldns_rr_list_type'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2782:41: return_function: returning to 'ldns_rr_list_type' from 'ldns_rr_list_rr'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:2782:24: call_function: calling 'ldns_rr_get_type' from 'ldns_rr_list_type'
#  947|   ldns_rr_get_type(const ldns_rr *rr)
#  948|   {
#  949|->         return rr->_rr_type;
#  950|   }
#  951|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def919]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1418:17: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rr_clone(orr1)'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1714:1: enter_function: entry to 'ldns_rr_compare_ds'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1717:24: call_function: calling 'ldns_rr_clone' from 'ldns_rr_compare_ds'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1717:24: return_function: returning to 'ldns_rr_compare_ds' from 'ldns_rr_clone'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1718:24: call_function: calling 'ldns_rr_clone' from 'ldns_rr_compare_ds'
# 1416|   	}
# 1417|   	if (ldns_rr_owner(rr)) {
# 1418|-> 		ldns_rr_set_owner(new_rr, ldns_rdf_clone(ldns_rr_owner(rr)));
# 1419|     	}
# 1420|   	ldns_rr_set_ttl(new_rr, ldns_rr_ttl(rr));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def920]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1418:17: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rr_new()'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1714:1: enter_function: entry to 'ldns_rr_compare_ds'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1717:24: call_function: calling 'ldns_rr_clone' from 'ldns_rr_compare_ds'
# 1416|   	}
# 1417|   	if (ldns_rr_owner(rr)) {
# 1418|-> 		ldns_rr_set_owner(new_rr, ldns_rdf_clone(ldns_rr_owner(rr)));
# 1419|     	}
# 1420|   	ldns_rr_set_ttl(new_rr, ldns_rr_ttl(rr));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def921]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1427:50: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rr_new()'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1714:1: enter_function: entry to 'ldns_rr_compare_ds'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1717:24: call_function: calling 'ldns_rr_clone' from 'ldns_rr_compare_ds'
# 1425|   	for (i = 0; i < ldns_rr_rd_count(rr); i++) {
# 1426|           	if (ldns_rr_rdf(rr,i)) {
# 1427|->         		ldns_rr_push_rdf(new_rr, ldns_rdf_clone(ldns_rr_rdf(rr, i)));
# 1428|                   }
# 1429|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def922]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1487:50: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rr_clone(*sa.original_object)'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1465:1: enter_function: entry to 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: call_function: calling 'ldns_rr_compare_no_rdata' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_compare_no_rdata'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1483:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:53: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:39: call_function: calling 'ldns_rr_clone' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:39: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_clone'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1486:25: call_function: calling 'ldns_rr2canonical' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1486:25: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr2canonical'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1487:50: call_function: calling 'ldns_rr_uncompressed_size' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1487:50: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_uncompressed_size'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1487:50: danger: 'ldns_rr_clone(*sa.original_object)' leaks here; was allocated at [(19)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/18)
# 1485|   			canonical_a = ldns_rr_clone(sa->original_object);
# 1486|   			ldns_rr2canonical(canonical_a);
# 1487|-> 			sa->transformed_object = ldns_buffer_new(ldns_rr_uncompressed_size(canonical_a));
# 1488|   			if (ldns_rr2buffer_wire(sa->transformed_object, canonical_a, LDNS_SECTION_ANY) != LDNS_STATUS_OK) {
# 1489|   		                ldns_buffer_free((ldns_buffer *)sa->transformed_object);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def923]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1488:29: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rr_clone(*sa.original_object)'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1465:1: enter_function: entry to 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: call_function: calling 'ldns_rr_compare_no_rdata' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_compare_no_rdata'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1483:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:53: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:39: call_function: calling 'ldns_rr_clone' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:39: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_clone'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1486:25: call_function: calling 'ldns_rr2canonical' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1486:25: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr2canonical'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1487:50: call_function: calling 'ldns_rr_uncompressed_size' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1487:50: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_uncompressed_size'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1488:29: danger: 'ldns_rr_clone(*sa.original_object)' leaks here; was allocated at [(19)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/18)
# 1486|   			ldns_rr2canonical(canonical_a);
# 1487|   			sa->transformed_object = ldns_buffer_new(ldns_rr_uncompressed_size(canonical_a));
# 1488|-> 			if (ldns_rr2buffer_wire(sa->transformed_object, canonical_a, LDNS_SECTION_ANY) != LDNS_STATUS_OK) {
# 1489|   		                ldns_buffer_free((ldns_buffer *)sa->transformed_object);
# 1490|                                   sa->transformed_object = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def924]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1489:33: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rr_clone(*sa.original_object)'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1465:1: enter_function: entry to 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: call_function: calling 'ldns_rr_compare_no_rdata' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_compare_no_rdata'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1483:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:53: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:39: call_function: calling 'ldns_rr_clone' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:39: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_clone'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1486:25: call_function: calling 'ldns_rr2canonical' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1486:25: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr2canonical'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1487:50: call_function: calling 'ldns_rr_uncompressed_size' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1487:50: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_uncompressed_size'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1488:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1489:65: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1489:33: danger: 'ldns_rr_clone(*sa.original_object)' leaks here; was allocated at [(19)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/18)
# 1487|   			sa->transformed_object = ldns_buffer_new(ldns_rr_uncompressed_size(canonical_a));
# 1488|   			if (ldns_rr2buffer_wire(sa->transformed_object, canonical_a, LDNS_SECTION_ANY) != LDNS_STATUS_OK) {
# 1489|-> 		                ldns_buffer_free((ldns_buffer *)sa->transformed_object);
# 1490|                                   sa->transformed_object = NULL;
# 1491|   				ldns_rr_free(canonical_a);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def925]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1499:50: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rr_clone(*sb.original_object)'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1465:1: enter_function: entry to 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: call_function: calling 'ldns_rr_compare_no_rdata' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_compare_no_rdata'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1483:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1496:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:53: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:39: call_function: calling 'ldns_rr_clone' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:39: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_clone'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1498:25: call_function: calling 'ldns_rr2canonical' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1498:25: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr2canonical'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1499:50: call_function: calling 'ldns_rr_uncompressed_size' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1499:50: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_uncompressed_size'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1499:50: danger: 'ldns_rr_clone(*sb.original_object)' leaks here; was allocated at [(19)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/18)
# 1497|   			canonical_b = ldns_rr_clone(sb->original_object);
# 1498|   			ldns_rr2canonical(canonical_b);
# 1499|-> 			sb->transformed_object = ldns_buffer_new(ldns_rr_uncompressed_size(canonical_b));
# 1500|   			if (ldns_rr2buffer_wire(sb->transformed_object, canonical_b, LDNS_SECTION_ANY) != LDNS_STATUS_OK) {
# 1501|   		                ldns_buffer_free((ldns_buffer *)sa->transformed_object);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def926]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1500:29: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rr_clone(*sb.original_object)'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1465:1: enter_function: entry to 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: call_function: calling 'ldns_rr_compare_no_rdata' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_compare_no_rdata'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1483:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1496:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:53: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:39: call_function: calling 'ldns_rr_clone' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:39: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_clone'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1498:25: call_function: calling 'ldns_rr2canonical' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1498:25: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr2canonical'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1499:50: call_function: calling 'ldns_rr_uncompressed_size' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1499:50: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_uncompressed_size'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1500:29: danger: 'ldns_rr_clone(*sb.original_object)' leaks here; was allocated at [(19)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/18)
# 1498|   			ldns_rr2canonical(canonical_b);
# 1499|   			sb->transformed_object = ldns_buffer_new(ldns_rr_uncompressed_size(canonical_b));
# 1500|-> 			if (ldns_rr2buffer_wire(sb->transformed_object, canonical_b, LDNS_SECTION_ANY) != LDNS_STATUS_OK) {
# 1501|   		                ldns_buffer_free((ldns_buffer *)sa->transformed_object);
# 1502|   		                ldns_buffer_free((ldns_buffer *)sb->transformed_object);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def927]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1501:33: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rr_clone(*sb.original_object)'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1465:1: enter_function: entry to 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: call_function: calling 'ldns_rr_compare_no_rdata' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_compare_no_rdata'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1483:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1496:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:53: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:39: call_function: calling 'ldns_rr_clone' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:39: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_clone'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1498:25: call_function: calling 'ldns_rr2canonical' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1498:25: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr2canonical'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1499:50: call_function: calling 'ldns_rr_uncompressed_size' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1499:50: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_uncompressed_size'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1500:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1501:65: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1501:33: danger: 'ldns_rr_clone(*sb.original_object)' leaks here; was allocated at [(19)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/18)
# 1499|   			sb->transformed_object = ldns_buffer_new(ldns_rr_uncompressed_size(canonical_b));
# 1500|   			if (ldns_rr2buffer_wire(sb->transformed_object, canonical_b, LDNS_SECTION_ANY) != LDNS_STATUS_OK) {
# 1501|-> 		                ldns_buffer_free((ldns_buffer *)sa->transformed_object);
# 1502|   		                ldns_buffer_free((ldns_buffer *)sb->transformed_object);
# 1503|                                   sa->transformed_object = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def928]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1502:33: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rr_clone(*sb.original_object)'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1465:1: enter_function: entry to 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: call_function: calling 'ldns_rr_compare_no_rdata' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_compare_no_rdata'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1483:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1496:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:53: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:39: call_function: calling 'ldns_rr_clone' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:39: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_clone'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1498:25: call_function: calling 'ldns_rr2canonical' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1498:25: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr2canonical'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1499:50: call_function: calling 'ldns_rr_uncompressed_size' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1499:50: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_uncompressed_size'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1500:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1501:65: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1502:33: danger: 'ldns_rr_clone(*sb.original_object)' leaks here; was allocated at [(19)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/18)
# 1500|   			if (ldns_rr2buffer_wire(sb->transformed_object, canonical_b, LDNS_SECTION_ANY) != LDNS_STATUS_OK) {
# 1501|   		                ldns_buffer_free((ldns_buffer *)sa->transformed_object);
# 1502|-> 		                ldns_buffer_free((ldns_buffer *)sb->transformed_object);
# 1503|                                   sa->transformed_object = NULL;
# 1504|                                   sb->transformed_object = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def929]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1547:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1520:1: enter_function: entry to 'ldns_rr_list_sort'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1526:12: branch_true: following 'true' branch (when 'unsorted' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1527:30: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1527:30: call_function: calling 'ldns_rr_list_rr_count' from 'ldns_rr_list_sort'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1527:30: return_function: returning to 'ldns_rr_list_sort' from 'ldns_rr_list_rr_count'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1531:19: branch_false: following 'false' branch (when 'sortables' is non-NULL)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1532:29: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1533:34: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1533:40: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1534:27: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1544:57: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1544:57: call_function: calling 'ldns_rr_list_rr' from 'ldns_rr_list_sort'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1544:57: return_function: returning to 'ldns_rr_list_sort' from 'ldns_rr_list_rr'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1532:29: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1547:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1547:17: danger: '<unknown>' leaks here; was allocated at [(13)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/12)
# 1545|   			sortables[i]->transformed_object = NULL;
# 1546|   		}
# 1547|-> 		qsort(sortables,
# 1548|   		      item_count,
# 1549|   		      sizeof(struct ldns_schwartzian_compare_struct *),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def930]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1547:17: warning[-Wanalyzer-malloc-leak]: leak of 'sortables'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1520:1: enter_function: entry to 'ldns_rr_list_sort'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1526:12: branch_true: following 'true' branch (when 'unsorted' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1527:30: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1527:30: call_function: calling 'ldns_rr_list_rr_count' from 'ldns_rr_list_sort'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1527:30: return_function: returning to 'ldns_rr_list_sort' from 'ldns_rr_list_rr_count'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1529:29: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1531:19: branch_false: following 'false' branch (when 'sortables' is non-NULL)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1532:29: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1547:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1547:17: danger: 'sortables' leaks here; was allocated at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
# 1545|   			sortables[i]->transformed_object = NULL;
# 1546|   		}
# 1547|-> 		qsort(sortables,
# 1548|   		      item_count,
# 1549|   		      sizeof(struct ldns_schwartzian_compare_struct *),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def931]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1779:19: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rr_clone(*sa.original_object)'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1465:1: enter_function: entry to 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: call_function: calling 'ldns_rr_compare_no_rdata' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_compare_no_rdata'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1483:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:53: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:39: call_function: calling 'ldns_rr_clone' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:39: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_clone'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1486:25: call_function: calling 'ldns_rr2canonical' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1486:25: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr2canonical'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1487:50: call_function: calling 'ldns_rr_uncompressed_size' from 'qsort_schwartz_rr_compare'
# 1777|   	}
# 1778|   	/* ownername */
# 1779|-> 	rrsize += ldns_rdf_size(ldns_rr_owner(r));
# 1780|   	rrsize += LDNS_RR_OVERHEAD;
# 1781|   	return rrsize;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def932]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1779:19: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rr_clone(*sb.original_object)'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1465:1: enter_function: entry to 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: call_function: calling 'ldns_rr_compare_no_rdata' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_compare_no_rdata'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1483:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1496:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:53: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:39: call_function: calling 'ldns_rr_clone' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:39: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_clone'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1498:25: call_function: calling 'ldns_rr2canonical' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1498:25: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr2canonical'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1499:50: call_function: calling 'ldns_rr_uncompressed_size' from 'qsort_schwartz_rr_compare'
# 1777|   	}
# 1778|   	/* ownername */
# 1779|-> 	rrsize += ldns_rdf_size(ldns_rr_owner(r));
# 1780|   	rrsize += LDNS_RR_OVERHEAD;
# 1781|   	return rrsize;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def933]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1793:9: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rr_clone(*sa.original_object)'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1465:1: enter_function: entry to 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: call_function: calling 'ldns_rr_compare_no_rdata' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_compare_no_rdata'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1483:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:53: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:39: call_function: calling 'ldns_rr_clone' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1485:39: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_clone'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1486:25: call_function: calling 'ldns_rr2canonical' from 'qsort_schwartz_rr_compare'
# 1791|           }
# 1792|   
# 1793|->         ldns_dname2canonical(ldns_rr_owner(rr));
# 1794|   
# 1795|   	/*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def934]
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1793:9: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_rr_clone(*sb.original_object)'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1465:1: enter_function: entry to 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: call_function: calling 'ldns_rr_compare_no_rdata' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1481:18: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_compare_no_rdata'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1483:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1484:22: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1496:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:53: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:39: call_function: calling 'ldns_rr_clone' from 'qsort_schwartz_rr_compare'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1497:39: return_function: returning to 'qsort_schwartz_rr_compare' from 'ldns_rr_clone'
ldns-1.8.4/ldns-1.8.4_python3/rr.c:1498:25: call_function: calling 'ldns_rr2canonical' from 'qsort_schwartz_rr_compare'
# 1791|           }
# 1792|   
# 1793|->         ldns_dname2canonical(ldns_rr_owner(rr));
# 1794|   
# 1795|   	/*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def935]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:49:23: warning[-Wanalyzer-malloc-leak]: leak of 'r'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:763:1: enter_function: entry to 'ldns_str2rdf_cert_alg'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:771:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:780:22: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:780:22: call_function: calling 'ldns_str2rdf_int16' from 'ldns_str2rdf_cert_alg'
#   47|   		return LDNS_STATUS_INVALID_INT;
#   48|   	} else {
#   49|-> 		*rd = ldns_rdf_new_frm_data(
#   50|   			LDNS_RDF_TYPE_INT16, sizeof(uint16_t), r);
#   51|   		LDNS_FREE(r);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def936]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:242:23: warning[-Wanalyzer-malloc-leak]: leak of 'r'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:815:1: enter_function: entry to 'ldns_str2rdf_mnemonic4int8'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:818:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:826:16: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:826:16: call_function: calling 'ldns_str2rdf_int8' from 'ldns_str2rdf_mnemonic4int8'
#  240|   		return LDNS_STATUS_ERR;
#  241|           } else {
#  242|-> 		*rd = ldns_rdf_new_frm_data(
#  243|   			LDNS_RDF_TYPE_INT8, sizeof(uint8_t), r);
#  244|   		LDNS_FREE(r);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def937]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:574:15: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:472:1: enter_function: entry to 'ldns_str2rdf_apl'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:490:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:491:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:490:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:492:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:490:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:490:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:490:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:497:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:511:11: branch_false: following 'false' branch (when 'my_ip_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:512:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:518:19: branch_false: following 'false' branch (when 'afdpart' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:522:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:522:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:527:29: branch_true: following 'true' branch (when 'i != 4')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:528:36: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:558:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:559:11: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:564:9: call_function: inlined call to 'ldns_write_uint16' from 'ldns_str2rdf_apl'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:574:15: danger: 'data' leaks here; was allocated at [(24)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/23)
#  572|   	memcpy(data + 4, afdpart, afdlength);
#  573|   
#  574|-> 	*rd = ldns_rdf_new_frm_data(LDNS_RDF_TYPE_APL, afdlength + 4, data);
#  575|   	LDNS_FREE(afdpart);
#  576|   	LDNS_FREE(data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def938]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:574:15: warning[-Wanalyzer-malloc-leak]: leak of 'my_ip_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:472:1: enter_function: entry to 'ldns_str2rdf_apl'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:490:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:491:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:490:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:492:28: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:490:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:490:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:490:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:497:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:510:21: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:511:11: branch_false: following 'false' branch (when 'my_ip_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:512:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:518:19: branch_false: following 'false' branch (when 'afdpart' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:522:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:522:20: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:527:29: branch_true: following 'true' branch (when 'i != 4')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:528:36: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:559:11: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:564:9: call_function: inlined call to 'ldns_write_uint16' from 'ldns_str2rdf_apl'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:574:15: danger: 'my_ip_str' leaks here; was allocated at [(14)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/13)
#  572|   	memcpy(data + 4, afdpart, afdlength);
#  573|   
#  574|-> 	*rd = ldns_rdf_new_frm_data(LDNS_RDF_TYPE_APL, afdlength + 4, data);
#  575|   	LDNS_FREE(afdpart);
#  576|   	LDNS_FREE(data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def939]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:598:23: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:593:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:594:11: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:598:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:598:23: danger: 'buffer' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  596|           }
#  597|   
#  598|-> 	i = (uint16_t)ldns_b64_pton((const char*)str, buffer,
#  599|   						   ldns_b64_ntop_calculate_size(strlen(str)));
#  600|   	if (-1 == i) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def940]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:629:13: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:620:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:623:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:623:18: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:624:11: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:627:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:629:13: danger: 'buffer' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  627|   	buffer[0] = len;
#  628|   
#  629|-> 	i = ldns_b32_pton_extended_hex((const char*)str, slen, buffer + 1,
#  630|   							 ldns_b32_ntop_calculate_size(slen));
#  631|   	if (i < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def941]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:670:63: warning[-Wanalyzer-malloc-leak]: leak of 't'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:652:12: branch_false: following 'false' branch (when 'len <= 131070')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:655:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:655:21: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:656:19: branch_false: following 'false' branch (when 't' is non-NULL)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:661:24: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:662:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:663:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:666:46: branch_true: following 'true' branch (when 'i > 0')...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:667:48: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:667:56: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:667:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:668:44: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:668:44: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:669:53: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:669:52: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:670:63: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:670:63: danger: 't' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  668|   					if (*str) {
#  669|   						if (isxdigit((int) *str)) {
#  670|-> 							*t += ldns_hexdigit_to_int(*str) * i;
#  671|   						} else {
#  672|                                                           LDNS_FREE(t_orig);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def942]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:710:9: warning[-Wanalyzer-malloc-leak]: leak of 'str_buf'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:699:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:700:11: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:700:11: branch_false: following 'false' branch (when 'rd' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:705:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:705:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:706:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:710:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:710:9: danger: 'str_buf' leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  708|   		return LDNS_STATUS_MEM_ERR;
#  709|   	}
#  710|-> 	ldns_buffer_new_frm_data(str_buf, (char *)str, strlen(str));
#  711|   	if(ldns_buffer_status(str_buf) != LDNS_STATUS_OK) {
#  712|   		LDNS_FREE(str_buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def943]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:710:9: warning[-Wanalyzer-malloc-leak]: leak of 'token'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:693:23: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:699:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:700:11: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:700:11: branch_false: following 'false' branch (when 'rd' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:705:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:706:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:710:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:710:9: danger: 'token' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  708|   		return LDNS_STATUS_MEM_ERR;
#  709|   	}
#  710|-> 	ldns_buffer_new_frm_data(str_buf, (char *)str, strlen(str));
#  711|   	if(ldns_buffer_status(str_buf) != LDNS_STATUS_OK) {
#  712|   		LDNS_FREE(str_buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def944]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:717:21: warning[-Wanalyzer-malloc-leak]: leak of 'token'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:693:23: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:699:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:700:11: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:700:11: branch_false: following 'false' branch (when 'rd' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:705:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:706:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:710:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:711:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:717:21: danger: 'token' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  715|   	}
#  716|   
#  717|-> 	while ((c = ldns_bget_token(str_buf, token, delimiters, LDNS_MAX_RDFLEN)) != -1 && c != 0) {
#  718|                   if(type_count >= sizeof(type_list)) {
#  719|   		        LDNS_FREE(str_buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def945]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1083:15: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:916:1: enter_function: entry to 'ldns_str2rdf_loc'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:923:39: call_function: inlined call to 'ldns_power' from 'ldns_str2rdf_loc'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:938:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:939:32: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:950:19: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:951:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:994:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:995:32: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1006:19: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1007:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1070:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1071:11: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1074:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1083:15: danger: 'data' leaks here; was allocated at [(15)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/14)
# 1081|   	ldns_write_uint32(data + 12, altitude);
# 1082|   
# 1083|-> 	*rd = ldns_rdf_new_frm_data(
# 1084|   		LDNS_RDF_TYPE_LOC, 16, data);
# 1085|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def946]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: warning[-Wanalyzer-malloc-leak]: leak of 'str_buf'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1108:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1109:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: danger: 'str_buf' leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
# 1113|   	str_buf = LDNS_MALLOC(ldns_buffer);
# 1114|   	if(!str_buf) {LDNS_FREE(token); return LDNS_STATUS_MEM_ERR;}
# 1115|-> 	ldns_buffer_new_frm_data(str_buf, (char *)str, strlen(str));
# 1116|   	if(ldns_buffer_status(str_buf) != LDNS_STATUS_OK) {
# 1117|   		LDNS_FREE(str_buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def947]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: warning[-Wanalyzer-malloc-leak]: leak of 'token'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1108:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1109:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1109:25: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: danger: 'token' leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
# 1113|   	str_buf = LDNS_MALLOC(ldns_buffer);
# 1114|   	if(!str_buf) {LDNS_FREE(token); return LDNS_STATUS_MEM_ERR;}
# 1115|-> 	ldns_buffer_new_frm_data(str_buf, (char *)str, strlen(str));
# 1116|   	if(ldns_buffer_status(str_buf) != LDNS_STATUS_OK) {
# 1117|   		LDNS_FREE(str_buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def948]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: warning[-Wanalyzer-malloc-leak]: leak of 'lc_proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1125:40: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: danger: 'lc_proto_str' leaks here; was allocated at [(11)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/10)
# 1120|   	}
# 1121|   
# 1122|-> 	while(ldns_bget_token(str_buf, token, "\t\n ", strlen(str)) > 0) {
# 1123|   		if (!proto_str) {
# 1124|   			proto_str = strdup(token);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def949]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: warning[-Wanalyzer-malloc-leak]: leak of 'proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: danger: 'proto_str' leaks here; was allocated at [(11)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/10)
# 1120|   	}
# 1121|   
# 1122|-> 	while(ldns_bget_token(str_buf, token, "\t\n ", strlen(str)) > 0) {
# 1123|   		if (!proto_str) {
# 1124|   			proto_str = strdup(token);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def950]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: warning[-Wanalyzer-malloc-leak]: leak of 'token'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1108:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1109:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1109:25: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: danger: 'token' leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
# 1120|   	}
# 1121|   
# 1122|-> 	while(ldns_bget_token(str_buf, token, "\t\n ", strlen(str)) > 0) {
# 1123|   		if (!proto_str) {
# 1124|   			proto_str = strdup(token);

Error: CPPCHECK_WARNING (CWE-476): [#def951]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
# 1124|   			proto_str = strdup(token);
# 1125|   			lc_proto_str = strdup(token);
# 1126|-> 			for (c = lc_proto_str; *c; c++) {
# 1127|   				*c = tolower((unsigned char)*c);
# 1128|   			}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def952]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'c'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1125:40: acquire_memory: this call could return NULL
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: danger: 'c' could be NULL: unchecked value from [(11)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/10)
# 1124|   			proto_str = strdup(token);
# 1125|   			lc_proto_str = strdup(token);
# 1126|-> 			for (c = lc_proto_str; *c; c++) {
# 1127|   				*c = tolower((unsigned char)*c);
# 1128|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def953]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: warning[-Wanalyzer-malloc-leak]: leak of 'lc_proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1125:40: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: danger: 'lc_proto_str' leaks here; was allocated at [(11)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/10)
# 1136|   			}
# 1137|   		} else {
# 1138|-> 			serv = getservbyname(token, proto_str);
# 1139|   			if (!serv) {
# 1140|   				serv = getservbyname(token, lc_proto_str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def954]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: warning[-Wanalyzer-malloc-leak]: leak of 'proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: danger: 'proto_str' leaks here; was allocated at [(11)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/10)
# 1136|   			}
# 1137|   		} else {
# 1138|-> 			serv = getservbyname(token, proto_str);
# 1139|   			if (!serv) {
# 1140|   				serv = getservbyname(token, lc_proto_str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def955]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1140:40: warning[-Wanalyzer-malloc-leak]: leak of 'lc_proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1125:40: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1140:40: danger: 'lc_proto_str' leaks here; was allocated at [(11)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/10)
# 1138|   			serv = getservbyname(token, proto_str);
# 1139|   			if (!serv) {
# 1140|-> 				serv = getservbyname(token, lc_proto_str);
# 1141|   			}
# 1142|   			if (!serv && (lc_token = strdup(token))) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def956]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1140:40: warning[-Wanalyzer-malloc-leak]: leak of 'proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1140:40: danger: 'proto_str' leaks here; was allocated at [(11)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/10)
# 1138|   			serv = getservbyname(token, proto_str);
# 1139|   			if (!serv) {
# 1140|-> 				serv = getservbyname(token, lc_proto_str);
# 1141|   			}
# 1142|   			if (!serv && (lc_token = strdup(token))) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def957]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1146:40: warning[-Wanalyzer-malloc-leak]: leak of 'c'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1142:50: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1142:29: branch_true: following 'true' branch (when 'lc_token' is non-NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1146:40: danger: 'c' leaks here; was allocated at [(19)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/18)
# 1144|   					*c = tolower((unsigned char)*c);
# 1145|   				}
# 1146|-> 				serv = getservbyname(lc_token, proto_str);
# 1147|   				if (!serv) {
# 1148|   					serv = getservbyname(lc_token, lc_proto_str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def958]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1146:40: warning[-Wanalyzer-malloc-leak]: leak of 'lc_proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1125:40: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1142:29: branch_true: following 'true' branch (when 'lc_token' is non-NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1146:40: danger: 'lc_proto_str' leaks here; was allocated at [(11)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/10)
# 1144|   					*c = tolower((unsigned char)*c);
# 1145|   				}
# 1146|-> 				serv = getservbyname(lc_token, proto_str);
# 1147|   				if (!serv) {
# 1148|   					serv = getservbyname(lc_token, lc_proto_str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def959]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1146:40: warning[-Wanalyzer-malloc-leak]: leak of 'lc_token'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1142:50: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1142:29: branch_true: following 'true' branch (when 'lc_token' is non-NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1146:40: danger: 'lc_token' leaks here; was allocated at [(19)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/18)
# 1144|   					*c = tolower((unsigned char)*c);
# 1145|   				}
# 1146|-> 				serv = getservbyname(lc_token, proto_str);
# 1147|   				if (!serv) {
# 1148|   					serv = getservbyname(lc_token, lc_proto_str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def960]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1146:40: warning[-Wanalyzer-malloc-leak]: leak of 'proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1142:29: branch_true: following 'true' branch (when 'lc_token' is non-NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1146:40: danger: 'proto_str' leaks here; was allocated at [(11)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/10)
# 1144|   					*c = tolower((unsigned char)*c);
# 1145|   				}
# 1146|-> 				serv = getservbyname(lc_token, proto_str);
# 1147|   				if (!serv) {
# 1148|   					serv = getservbyname(lc_token, lc_proto_str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def961]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1148:48: warning[-Wanalyzer-malloc-leak]: leak of 'c'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1142:50: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1142:29: branch_true: following 'true' branch (when 'lc_token' is non-NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1148:48: danger: 'c' leaks here; was allocated at [(19)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/18)
# 1146|   				serv = getservbyname(lc_token, proto_str);
# 1147|   				if (!serv) {
# 1148|-> 					serv = getservbyname(lc_token, lc_proto_str);
# 1149|   				}
# 1150|   				free(lc_token);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def962]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1148:48: warning[-Wanalyzer-malloc-leak]: leak of 'lc_proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1125:40: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1142:29: branch_true: following 'true' branch (when 'lc_token' is non-NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1148:48: danger: 'lc_proto_str' leaks here; was allocated at [(11)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/10)
# 1146|   				serv = getservbyname(lc_token, proto_str);
# 1147|   				if (!serv) {
# 1148|-> 					serv = getservbyname(lc_token, lc_proto_str);
# 1149|   				}
# 1150|   				free(lc_token);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def963]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1148:48: warning[-Wanalyzer-malloc-leak]: leak of 'lc_token'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1142:50: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1142:29: branch_true: following 'true' branch (when 'lc_token' is non-NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1148:48: danger: 'lc_token' leaks here; was allocated at [(19)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/18)
# 1146|   				serv = getservbyname(lc_token, proto_str);
# 1147|   				if (!serv) {
# 1148|-> 					serv = getservbyname(lc_token, lc_proto_str);
# 1149|   				}
# 1150|   				free(lc_token);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def964]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1148:48: warning[-Wanalyzer-malloc-leak]: leak of 'proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1142:29: branch_true: following 'true' branch (when 'lc_token' is non-NULL)...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1148:48: danger: 'proto_str' leaks here; was allocated at [(11)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/10)
# 1146|   				serv = getservbyname(lc_token, proto_str);
# 1147|   				if (!serv) {
# 1148|-> 					serv = getservbyname(lc_token, lc_proto_str);
# 1149|   				}
# 1150|   				free(lc_token);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def965]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1160:33: warning[-Wanalyzer-malloc-leak]: leak of 'lc_proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1091:1: enter_function: entry to 'ldns_str2rdf_wks'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1125:40: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1152:28: branch_false: following 'false' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1155:45: call_function: inlined call to 'atoi' from 'ldns_str2rdf_wks'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1157:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1158:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1160:33: danger: 'lc_proto_str' leaks here; was allocated at [(12)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/11)
# 1158|   				LDNS_FREE(bitmap);
# 1159|   			        LDNS_FREE(token);
# 1160|->                                 ldns_buffer_free(str_buf);
# 1161|   			        free(proto_str);
# 1162|   			        free(lc_proto_str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def966]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1160:33: warning[-Wanalyzer-malloc-leak]: leak of 'proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1091:1: enter_function: entry to 'ldns_str2rdf_wks'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1152:28: branch_false: following 'false' branch (when 'serv' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1155:45: call_function: inlined call to 'atoi' from 'ldns_str2rdf_wks'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1157:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1158:33: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1160:33: danger: 'proto_str' leaks here; was allocated at [(12)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/11)
# 1158|   				LDNS_FREE(bitmap);
# 1159|   			        LDNS_FREE(token);
# 1160|->                                 ldns_buffer_free(str_buf);
# 1161|   			        free(proto_str);
# 1162|   			        free(lc_proto_str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def967]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1170:41: warning[-Wanalyzer-malloc-leak]: leak of 'lc_proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1125:40: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1152:28: branch_true: following 'true' branch (when 'serv' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1153:51: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1167:35: branch_true: following 'true' branch (when 'b2' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1168:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1170:41: danger: 'lc_proto_str' leaks here; was allocated at [(11)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/10)
# 1168|   					LDNS_FREE(bitmap);
# 1169|   				        LDNS_FREE(token);
# 1170|-> 	                                ldns_buffer_free(str_buf);
# 1171|   				        free(proto_str);
# 1172|   				        free(lc_proto_str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def968]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1170:41: warning[-Wanalyzer-malloc-leak]: leak of 'proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1152:28: branch_true: following 'true' branch (when 'serv' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1153:51: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1167:35: branch_true: following 'true' branch (when 'b2' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1168:41: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1170:41: danger: 'proto_str' leaks here; was allocated at [(11)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/10)
# 1168|   					LDNS_FREE(bitmap);
# 1169|   				        LDNS_FREE(token);
# 1170|-> 	                                ldns_buffer_free(str_buf);
# 1171|   				        free(proto_str);
# 1172|   				        free(lc_proto_str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def969]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1181:25: warning[-Wanalyzer-malloc-leak]: leak of 'lc_proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1125:40: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1152:28: branch_true: following 'true' branch (when 'serv' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1153:51: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1165:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1181:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1181:25: danger: 'lc_proto_str' leaks here; was allocated at [(11)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/10)
# 1179|   				}
# 1180|   			}
# 1181|-> 			ldns_set_bit(bitmap + (serv_port / 8), 7 - (serv_port % 8), true);
# 1182|   		}
# 1183|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def970]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1181:25: warning[-Wanalyzer-malloc-leak]: leak of 'proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_false: following 'false' branch (when 'proto_str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1138:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1152:28: branch_true: following 'true' branch (when 'serv' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1153:51: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1165:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1181:25: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1181:25: danger: 'proto_str' leaks here; was allocated at [(11)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/10)
# 1179|   				}
# 1180|   			}
# 1181|-> 			ldns_set_bit(bitmap + (serv_port / 8), 7 - (serv_port % 8), true);
# 1182|   		}
# 1183|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def971]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1188:17: warning[-Wanalyzer-malloc-leak]: leak of 'lc_proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1125:40: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1185:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1186:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1188:17: danger: 'lc_proto_str' leaks here; was allocated at [(11)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/10)
# 1186|   		LDNS_FREE(bitmap);
# 1187|   		LDNS_FREE(token);
# 1188|-> 	        ldns_buffer_free(str_buf);
# 1189|   	        free(proto_str);
# 1190|   	        free(lc_proto_str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def972]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1188:17: warning[-Wanalyzer-malloc-leak]: leak of 'proto_str'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1111:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1113:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1114:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1115:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1116:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1122:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1123:20: branch_true: following 'true' branch (when 'proto_str' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1124:37: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1126:48: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1129:28: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1185:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1186:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1188:17: danger: 'proto_str' leaks here; was allocated at [(11)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/10)
# 1186|   		LDNS_FREE(bitmap);
# 1187|   		LDNS_FREE(token);
# 1188|-> 	        ldns_buffer_free(str_buf);
# 1189|   	        free(proto_str);
# 1190|   	        free(lc_proto_str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def973]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1298:9: warning[-Wanalyzer-malloc-leak]: leak of 'str_buf'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1291:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1292:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1294:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1296:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1296:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1297:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1298:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1298:9: danger: 'str_buf' leaks here; was allocated at [(5)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/4)
# 1296|   	str_buf = LDNS_MALLOC(ldns_buffer);
# 1297|   	if(!str_buf) {LDNS_FREE(token); return LDNS_STATUS_MEM_ERR;}
# 1298|-> 	ldns_buffer_new_frm_data(str_buf, (char *)str, strlen(str));
# 1299|   	if(ldns_buffer_status(str_buf) != LDNS_STATUS_OK) {
# 1300|   		LDNS_FREE(str_buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def974]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1298:9: warning[-Wanalyzer-malloc-leak]: leak of 'token'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1291:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1292:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1292:25: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1294:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1296:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1297:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1298:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1298:9: danger: 'token' leaks here; was allocated at [(3)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/2)
# 1296|   	str_buf = LDNS_MALLOC(ldns_buffer);
# 1297|   	if(!str_buf) {LDNS_FREE(token); return LDNS_STATUS_MEM_ERR;}
# 1298|-> 	ldns_buffer_new_frm_data(str_buf, (char *)str, strlen(str));
# 1299|   	if(ldns_buffer_status(str_buf) != LDNS_STATUS_OK) {
# 1300|   		LDNS_FREE(str_buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def975]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1304:15: warning[-Wanalyzer-malloc-leak]: leak of 'token'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1291:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1292:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1292:25: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1294:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1296:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1297:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1298:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1299:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1304:15: danger: 'token' leaks here; was allocated at [(3)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/2)
# 1302|   		return LDNS_STATUS_MEM_ERR;
# 1303|   	}
# 1304|-> 	while(ldns_bget_token(str_buf, token, "\t\n ", strlen(str)) > 0) {
# 1305|   		switch (token_count) {
# 1306|   				case 0:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def976]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1520:15: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1505:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1513:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1514:12: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1517:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1520:15: danger: 'data' leaks here; was allocated at [(3)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/2)
# 1518|   	memcpy(data + 1, str, strlen(str));
# 1519|   
# 1520|-> 	*rd = ldns_rdf_new(LDNS_RDF_TYPE_TAG, strlen(str) + 1, data);
# 1521|   	if (!*rd) {
# 1522|   		LDNS_FREE(data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def977]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1567:15: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1535:21: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1536:12: branch_false: following 'false' branch (when 'data' is non-NULL)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1541:16: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1548:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1548:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1552:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1552:12: branch_false: following 'false' branch (when 'length != 0')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1560:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1561:20: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1567:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1567:15: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
# 1565|   	}
# 1566|   	/* Create rdf */
# 1567|-> 	*rd = ldns_rdf_new(LDNS_RDF_TYPE_LONG_STR, length, data);
# 1568|   	if (! *rd) {
# 1569|   		LDNS_FREE(data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def978]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1639:27: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1578:27: branch_true: following 'true' branch (when 'str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1578:48: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1579:27: branch_true: following 'true' branch (when 'hit' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1579:48: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1580:27: branch_true: following 'true' branch (when 'hit' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1581:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1581:27: branch_false: following 'false' branch (when 'pk' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1581:68: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1582:27: branch_true: following 'true' branch (when 'pk' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1582:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1588:13: branch_true: following 'true' branch (when 'str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1588:43: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1593:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1593:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1593:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1601:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1603:21: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1603:12: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1634:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1637:29: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1639:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1639:27: danger: 'data' leaks here; was allocated at [(21)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/20)
# 1637|   	for (dp = data + 4; *hit && *hit != ' '; dp++) {
# 1638|   
# 1639|-> 		if ((hi = ldns_hexdigit_to_int(*hit++)) == -1 ||
# 1640|   		    (lo = ldns_hexdigit_to_int(*hit++)) == -1) {
# 1641|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def979]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1640:27: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1578:27: branch_true: following 'true' branch (when 'str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1578:48: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1579:27: branch_true: following 'true' branch (when 'hit' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1579:48: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1580:27: branch_true: following 'true' branch (when 'hit' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1581:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1581:27: branch_false: following 'false' branch (when 'pk' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1581:68: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1582:27: branch_true: following 'true' branch (when 'pk' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1582:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1588:13: branch_true: following 'true' branch (when 'str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1588:43: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1593:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1593:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1593:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1601:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1603:21: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1603:12: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1634:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1637:29: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1639:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1639:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1640:49: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1640:27: danger: 'data' leaks here; was allocated at [(21)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/20)
# 1638|   
# 1639|   		if ((hi = ldns_hexdigit_to_int(*hit++)) == -1 ||
# 1640|-> 		    (lo = ldns_hexdigit_to_int(*hit++)) == -1) {
# 1641|   
# 1642|   			LDNS_FREE(data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def980]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1647:24: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1578:27: branch_true: following 'true' branch (when 'str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1578:48: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1579:27: branch_true: following 'true' branch (when 'hit' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1579:48: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1580:27: branch_true: following 'true' branch (when 'hit' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1581:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1581:27: branch_false: following 'false' branch (when 'pk' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1581:68: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1582:27: branch_true: following 'true' branch (when 'pk' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1582:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1588:13: branch_true: following 'true' branch (when 'str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1588:43: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1593:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1593:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1593:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1601:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1603:21: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1603:12: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1634:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1647:24: danger: 'data' leaks here; was allocated at [(21)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/20)
# 1645|   		*dp = (uint8_t) hi << 4 | lo;
# 1646|   	}
# 1647|-> 	if ((written = ldns_b64_pton(pk, dp, pk_wire_size)) <= 0) {
# 1648|   
# 1649|   		LDNS_FREE(data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def981]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1661:22: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1578:27: branch_true: following 'true' branch (when 'str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1578:48: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1579:27: branch_true: following 'true' branch (when 'hit' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1579:48: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1580:27: branch_true: following 'true' branch (when 'hit' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1581:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1581:27: branch_false: following 'false' branch (when 'pk' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1581:68: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1582:27: branch_true: following 'true' branch (when 'pk' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1582:45: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1588:13: branch_true: following 'true' branch (when 'str' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1588:43: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1593:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1593:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1593:13: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1601:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1603:21: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1603:12: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1634:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1647:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1656:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1661:22: danger: 'data' leaks here; was allocated at [(21)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/20)
# 1659|   
# 1660|   	/* Create rdf */
# 1661|-> 	if (! (*rd = ldns_rdf_new(LDNS_RDF_TYPE_HIP, rdf_size, data))) {
# 1662|   
# 1663|   		LDNS_FREE(data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def982]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1705:9: warning[-Wanalyzer-malloc-leak]: leak of 'str_buf'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1698:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1699:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1701:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1703:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1703:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1704:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1705:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1705:9: danger: 'str_buf' leaks here; was allocated at [(5)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/4)
# 1703|   	str_buf = LDNS_MALLOC(ldns_buffer);
# 1704|   	if(!str_buf) {LDNS_FREE(token); return LDNS_STATUS_MEM_ERR;}
# 1705|-> 	ldns_buffer_new_frm_data(str_buf, (char *)str, strlen(str));
# 1706|   	if(ldns_buffer_status(str_buf) != LDNS_STATUS_OK) {
# 1707|   		LDNS_FREE(str_buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def983]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1705:9: warning[-Wanalyzer-malloc-leak]: leak of 'token'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1698:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1699:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1699:25: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1701:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1703:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1704:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1705:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1705:9: danger: 'token' leaks here; was allocated at [(3)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/2)
# 1703|   	str_buf = LDNS_MALLOC(ldns_buffer);
# 1704|   	if(!str_buf) {LDNS_FREE(token); return LDNS_STATUS_MEM_ERR;}
# 1705|-> 	ldns_buffer_new_frm_data(str_buf, (char *)str, strlen(str));
# 1706|   	if(ldns_buffer_status(str_buf) != LDNS_STATUS_OK) {
# 1707|   		LDNS_FREE(str_buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def984]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1711:15: warning[-Wanalyzer-malloc-leak]: leak of 'token'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1698:11: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1699:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1699:25: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1701:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1703:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1704:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1705:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1706:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1711:15: danger: 'token' leaks here; was allocated at [(3)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/2)
# 1709|   		return LDNS_STATUS_MEM_ERR;
# 1710|   	}
# 1711|-> 	while(ldns_bget_token(str_buf, token, "\t\n ", strlen(str)) > 0) {
# 1712|   		switch (token_count) {
# 1713|   		case 0:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def985]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1797:15: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1701:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1703:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1704:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1705:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1706:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1711:15: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1747:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1747:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1755:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1755:12: branch_false: following 'false' branch (when 'relay_type != 1')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1757:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1757:19: branch_false: following 'false' branch (when 'relay_type != 2')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1759:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1759:19: branch_false: following 'false' branch (when 'relay_type != 3')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1761:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1761:19: branch_false: following 'false' branch (when 'relay_type <= 3')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1774:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1774:12: branch_false: following 'false' branch (when 'relay_type == 0')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1779:16: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1779:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1780:11: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1789:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1793:12: branch_false: following 'false' branch (when 'relay_type == 0')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1797:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1797:15: danger: 'data' leaks here; was allocated at [(21)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/20)
# 1795|   			ldns_rdf_data(relay_rdf), ldns_rdf_size(relay_rdf));
# 1796|   	}
# 1797|-> 	*rd = ldns_rdf_new_frm_data( LDNS_RDF_TYPE_AMTRELAY
# 1798|   	                           , (uint16_t) amtrelay_len, data);
# 1799|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def986]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1803:9: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1701:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1703:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1704:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1705:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1706:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1711:15: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1747:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1747:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1755:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1755:12: branch_false: following 'false' branch (when 'relay_type != 1')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1757:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1757:19: branch_false: following 'false' branch (when 'relay_type != 2')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1759:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1759:19: branch_false: following 'false' branch (when 'relay_type != 3')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1761:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1761:19: branch_false: following 'false' branch (when 'relay_type <= 3')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1774:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1774:12: branch_false: following 'false' branch (when 'relay_type == 0')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1779:16: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1779:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1780:11: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1789:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1793:12: branch_false: following 'false' branch (when 'relay_type == 0')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1797:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1800:12: branch_false: following 'false' branch (when 'relay' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1802:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1803:9: danger: 'data' leaks here; was allocated at [(21)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/20)
# 1801|   		LDNS_FREE(relay);
# 1802|   	LDNS_FREE(token);
# 1803|-> 	ldns_buffer_free(str_buf);
# 1804|   	ldns_rdf_free(relay_rdf);
# 1805|   	LDNS_FREE(data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def987]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1804:9: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1701:11: branch_false: following 'false' branch (when 'token' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1703:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1704:11: branch_false: following 'false' branch (when 'str_buf' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1705:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1706:11: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1711:15: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1747:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1747:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1755:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1755:12: branch_false: following 'false' branch (when 'relay_type != 1')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1757:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1757:19: branch_false: following 'false' branch (when 'relay_type != 2')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1759:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1759:19: branch_false: following 'false' branch (when 'relay_type != 3')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1761:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1761:19: branch_false: following 'false' branch (when 'relay_type <= 3')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1774:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1774:12: branch_false: following 'false' branch (when 'relay_type == 0')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1779:16: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1779:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1780:11: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1789:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1793:12: branch_false: following 'false' branch (when 'relay_type == 0')...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1797:15: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1800:12: branch_false: following 'false' branch (when 'relay' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1802:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1804:9: danger: 'data' leaks here; was allocated at [(21)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/20)
# 1802|   	LDNS_FREE(token);
# 1803|   	ldns_buffer_free(str_buf);
# 1804|-> 	ldns_rdf_free(relay_rdf);
# 1805|   	LDNS_FREE(data);
# 1806|   	if(!*rd) return LDNS_STATUS_MEM_ERR;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def988]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:1863:9: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2331:1: enter_function: entry to 'ldns_str2rdf_svcparams'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2340:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2343:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2345:27: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2345:12: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2347:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2353:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2355:27: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2355:27: call_function: calling 'parse_svcparam' from 'ldns_str2rdf_svcparams'
# 1861|   	 *     values in network byte order, concatenated in ascending order.
# 1862|   	 */
# 1863|-> 	qsort(keys, (*dp - keys) / 2, 2, network_uint16_cmp);
# 1864|   
# 1865|   	/* In draft-ietf-dnsop-svcb-https-02 Section 7:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def989]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2124:15: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2331:1: enter_function: entry to 'ldns_str2rdf_svcparams'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2340:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2343:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2345:27: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2345:12: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2347:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2353:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2355:27: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2355:27: call_function: calling 'parse_svcparam' from 'ldns_str2rdf_svcparams'
# 2122|   		in[len++] = '=';
# 2123|   	in[len] = 0;
# 2124|-> 	out = ldns_b64_pton(in, *dp, out_len);
# 2125|   	if (in != in_buf)
# 2126|   		LDNS_FREE(in);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def990]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2124:15: warning[-Wanalyzer-malloc-leak]: leak of 'in'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2101:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2104:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2113:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2116:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2116:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2117:19: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2117:19: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2116:13: branch_false: following 'false' branch (when 'in' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2120:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2124:15: danger: 'in' leaks here; was allocated at [(7)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/6)
# 2122|   		in[len++] = '=';
# 2123|   	in[len] = 0;
# 2124|-> 	out = ldns_b64_pton(in, *dp, out_len);
# 2125|   	if (in != in_buf)
# 2126|   		LDNS_FREE(in);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def991]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2378:9: warning[-Wanalyzer-malloc-leak]: leak of 'dp'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2340:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2343:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2345:27: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2345:12: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2347:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2353:19: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2369:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2369:12: branch_false: following 'false' branch (when 'svcparams' is non-NULL)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2374:15: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2378:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2378:9: danger: 'dp' leaks here; was allocated at [(3)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/2)
# 2376|   		svcparams[i++] = p;
# 2377|   
# 2378|-> 	qsort(svcparams, i, sizeof(uint8_t *), svcparam_ptr_cmp);
# 2379|   
# 2380|   	/* Write out the (key, value) pairs to a newly allocated data in

Error: GCC_ANALYZER_WARNING (CWE-401): [#def992]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2378:9: warning[-Wanalyzer-malloc-leak]: leak of 'svcparams'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2340:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2343:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2345:12: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2347:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2353:19: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2369:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2369:27: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2369:12: branch_false: following 'false' branch (when 'svcparams' is non-NULL)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2374:15: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2378:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2378:9: danger: 'svcparams' leaks here; was allocated at [(7)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/6)
# 2376|   		svcparams[i++] = p;
# 2377|   
# 2378|-> 	qsort(svcparams, i, sizeof(uint8_t *), svcparam_ptr_cmp);
# 2379|   
# 2380|   	/* Write out the (key, value) pairs to a newly allocated data in

Error: GCC_ANALYZER_WARNING (CWE-127): [#def993]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2409:57: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2331:1: enter_function: entry to 'ldns_str2rdf_svcparams'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2340:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2343:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2345:12: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2347:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2353:19: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2355:27: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2355:27: call_function: calling 'parse_svcparam' from 'ldns_str2rdf_svcparams'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2355:27: return_function: returning to 'ldns_str2rdf_svcparams' from 'parse_svcparam'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2355:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2359:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2353:19: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2369:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2369:12: branch_false: following 'false' branch (when 'svcparams' is non-NULL)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2384:12: branch_false: following 'false' branch (when 'new_data' is non-NULL)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2391:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2408:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2408:40: call_function: inlined call to 'ldns_read_uint16' from 'ldns_str2rdf_svcparams'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2409:57: danger: out-of-bounds read from byte -8 till byte -1 but region starts at byte 0
# 2407|   		 */
# 2408|   		if (key == prev_key && ldns_read_uint16(svcparams[i] + 2)
# 2409|-> 		                    == ldns_read_uint16(svcparams[i - 1] + 2)
# 2410|   		&&  0 == memcmp( svcparams[i    ] + 4
# 2411|   		               , svcparams[i - 1] + 4

Error: GCC_ANALYZER_WARNING (CWE-401): [#def994]
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2423:15: warning[-Wanalyzer-malloc-leak]: leak of 'p'
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2340:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2343:18: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2345:12: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2347:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2353:19: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2369:27: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2369:12: branch_false: following 'false' branch (when 'svcparams' is non-NULL)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2374:15: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2378:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2384:26: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2384:12: branch_false: following 'false' branch (when 'new_data' is non-NULL)...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/str2host.c:2423:15: danger: 'p' leaks here; was allocated at [(11)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/10)
# 2421|   
# 2422|   	/* Create rdf */
# 2423|-> 	*rd = ldns_rdf_new(LDNS_RDF_TYPE_SVCPARAMS, p - new_data, new_data);
# 2424|   	if (! *rd) {
# 2425|   		LDNS_FREE(new_data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def995]
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:139:24: warning[-Wanalyzer-malloc-leak]: leak of 'mac_bytes'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:167:1: enter_function: entry to 'ldns_tsig_mac_new'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:186:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:189:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:190:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:193:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:194:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:201:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:202:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:207:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:210:9: call_function: calling 'ldns_buffer_write' from 'ldns_tsig_mac_new'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:210:9: return_function: returning to 'ldns_tsig_mac_new' from 'ldns_buffer_write'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:232:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:238:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:240:11: branch_false: following 'false' branch (when 'key_bytes' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:244:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:246:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:252:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:252:21: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:253:11: branch_false: following 'false' branch (when 'mac_bytes' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:257:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:259:20: call_function: calling 'ldns_digest_function' from 'ldns_tsig_mac_new'
#  137|   	if (strcasecmp(name, "hmac-sha512.") == 0) {
#  138|   #ifdef HAVE_EVP_SHA512
#  139|-> 		return EVP_sha512();
#  140|   #else
#  141|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def996]
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:145:24: warning[-Wanalyzer-malloc-leak]: leak of 'mac_bytes'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:167:1: enter_function: entry to 'ldns_tsig_mac_new'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:186:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:189:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:190:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:193:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:194:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:201:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:202:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:207:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:210:9: call_function: calling 'ldns_buffer_write' from 'ldns_tsig_mac_new'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:210:9: return_function: returning to 'ldns_tsig_mac_new' from 'ldns_buffer_write'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:232:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:238:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:240:11: branch_false: following 'false' branch (when 'key_bytes' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:244:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:246:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:252:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:252:21: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:253:11: branch_false: following 'false' branch (when 'mac_bytes' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:257:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:259:20: call_function: calling 'ldns_digest_function' from 'ldns_tsig_mac_new'
#  143|   	} else if (strcasecmp(name, "hmac-shac384.") == 0) {
#  144|   #ifdef HAVE_EVP_SHA384
#  145|-> 		return EVP_sha384();
#  146|   #else
#  147|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def997]
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:151:24: warning[-Wanalyzer-malloc-leak]: leak of 'mac_bytes'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:167:1: enter_function: entry to 'ldns_tsig_mac_new'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:186:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:189:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:190:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:193:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:194:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:201:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:202:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:207:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:210:9: call_function: calling 'ldns_buffer_write' from 'ldns_tsig_mac_new'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:210:9: return_function: returning to 'ldns_tsig_mac_new' from 'ldns_buffer_write'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:232:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:238:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:240:11: branch_false: following 'false' branch (when 'key_bytes' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:244:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:246:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:252:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:252:21: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:253:11: branch_false: following 'false' branch (when 'mac_bytes' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:257:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:259:20: call_function: calling 'ldns_digest_function' from 'ldns_tsig_mac_new'
#  149|   	} else if (strcasecmp(name, "hmac-sha256.") == 0) {
#  150|   #ifdef HAVE_EVP_SHA256
#  151|-> 		return EVP_sha256();
#  152|   #else
#  153|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def998]
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:156:24: warning[-Wanalyzer-malloc-leak]: leak of 'mac_bytes'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:167:1: enter_function: entry to 'ldns_tsig_mac_new'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:186:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:189:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:190:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:193:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:194:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:201:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:202:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:207:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:210:9: call_function: calling 'ldns_buffer_write' from 'ldns_tsig_mac_new'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:210:9: return_function: returning to 'ldns_tsig_mac_new' from 'ldns_buffer_write'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:232:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:238:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:240:11: branch_false: following 'false' branch (when 'key_bytes' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:244:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:246:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:252:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:252:21: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:253:11: branch_false: following 'false' branch (when 'mac_bytes' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:257:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:259:20: call_function: calling 'ldns_digest_function' from 'ldns_tsig_mac_new'
#  154|   #endif
#  155|   	} else if (strcasecmp(name, "hmac-sha1.") == 0) {
#  156|-> 		return EVP_sha1();
#  157|   	} else if (strcasecmp(name, "hmac-md5.sig-alg.reg.int.") == 0) {
#  158|   		return EVP_md5();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def999]
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:158:24: warning[-Wanalyzer-malloc-leak]: leak of 'mac_bytes'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:167:1: enter_function: entry to 'ldns_tsig_mac_new'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:186:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:189:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:190:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:193:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:194:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:201:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:202:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:207:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:210:9: call_function: calling 'ldns_buffer_write' from 'ldns_tsig_mac_new'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:210:9: return_function: returning to 'ldns_tsig_mac_new' from 'ldns_buffer_write'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:232:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:238:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:240:11: branch_false: following 'false' branch (when 'key_bytes' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:244:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:246:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:252:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:252:21: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:253:11: branch_false: following 'false' branch (when 'mac_bytes' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:257:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:259:20: call_function: calling 'ldns_digest_function' from 'ldns_tsig_mac_new'
#  156|   		return EVP_sha1();
#  157|   	} else if (strcasecmp(name, "hmac-md5.sig-alg.reg.int.") == 0) {
#  158|-> 		return EVP_md5();
#  159|   	} else {
#  160|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1000]
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:244:20: warning[-Wanalyzer-malloc-leak]: leak of 'key_bytes'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:167:1: enter_function: entry to 'ldns_tsig_mac_new'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:186:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:189:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:190:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:193:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:194:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:201:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:202:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:207:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:210:9: call_function: calling 'ldns_buffer_write' from 'ldns_tsig_mac_new'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:210:9: return_function: returning to 'ldns_tsig_mac_new' from 'ldns_buffer_write'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:232:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:238:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:238:21: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:240:11: branch_false: following 'false' branch (when 'key_bytes' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:244:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:244:20: danger: 'key_bytes' leaks here; was allocated at [(38)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/37)
#  242|   		goto clean;
#  243|   	}
#  244|-> 	key_size = ldns_b64_pton(key_data, key_bytes,
#  245|   	ldns_b64_pton_calculate_size(strlen(key_data)));
#  246|   	if (key_size < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1001]
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:262:24: warning[-Wanalyzer-malloc-leak]: leak of 'mac_bytes'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:167:1: enter_function: entry to 'ldns_tsig_mac_new'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:186:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:189:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:190:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:193:35: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:194:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:201:23: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:202:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:207:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:210:9: call_function: calling 'ldns_buffer_write' from 'ldns_tsig_mac_new'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:210:9: return_function: returning to 'ldns_tsig_mac_new' from 'ldns_buffer_write'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:232:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:238:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:240:11: branch_false: following 'false' branch (when 'key_bytes' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:244:20: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:246:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:252:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:252:21: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:253:11: branch_false: following 'false' branch (when 'mac_bytes' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:257:9: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:259:20: call_function: calling 'ldns_digest_function' from 'ldns_tsig_mac_new'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:259:20: return_function: returning to 'ldns_tsig_mac_new' from 'ldns_digest_function'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:261:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:262:24: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:262:24: danger: 'mac_bytes' leaks here; was allocated at [(42)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/41)
#  260|   
#  261|   	if (digester) {
#  262|-> 		(void) HMAC(digester, key_bytes, key_size, (void *)wireformat,
#  263|   		            (size_t) wiresize, mac_bytes + 2, &md_len);
#  264|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1002]
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:425:27: warning[-Wanalyzer-malloc-leak]: leak of 'time_signed'
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:405:11: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:412:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:412:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:413:31: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:413:31: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:414:19: branch_false: following 'false' branch (when 'time_signed' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:419:43: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/tsig.c:425:27: danger: 'time_signed' leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
#  423|   	}
#  424|   
#  425|-> 	time_signed_rdf = ldns_rdf_new(LDNS_RDF_TYPE_TSIGTIME, 6, time_signed);
#  426|   	if(!time_signed_rdf) {
#  427|   		LDNS_FREE(time_signed);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1003]
ldns-1.8.4/ldns-1.8.4_python3/util.c:383:26: warning[-Wanalyzer-null-argument]: use of NULL 'rand_f' where non-null expected
ldns-1.8.4/ldns-1.8.4_python3/util.c:356:11: branch_false: following 'false' branch (when 'seed' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/util.c:360:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/util.c:360:12: branch_true: following 'true' branch (when 'fd' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/util.c:361:31: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/util.c:361:20: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/util.c:363:39: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/util.c:363:28: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/util.c:381:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/util.c:382:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/util.c:383:20: branch_true: following 'true' branch (when 'fd' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/util.c:383:26: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/util.c:383:26: danger: argument 1 ('rand_f') NULL where non-null expected
#  381|   	if (read < size) {
#  382|   		LDNS_FREE(seed);
#  383|-> 		if (!fd) fclose(rand_f);
#  384|   		return 1;
#  385|   	} else {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1004]
ldns-1.8.4/ldns-1.8.4_python3/util.c:389:17: warning[-Wanalyzer-file-leak]: leak of FILE 'rand_f'
ldns-1.8.4/ldns-1.8.4_python3/util.c:356:11: branch_false: following 'false' branch (when 'seed' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/util.c:360:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/util.c:360:12: branch_true: following 'true' branch (when 'fd' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/util.c:361:31: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/util.c:361:31: acquire_resource: opened here
ldns-1.8.4/ldns-1.8.4_python3/util.c:361:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/util.c:374:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/util.c:381:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/util.c:389:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/util.c:389:17: danger: 'rand_f' leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  387|   		/* Seed the OpenSSL prng (most systems have it seeded
#  388|   		   automatically, in that case this call just adds entropy */
#  389|-> 		RAND_seed(seed, (int) size);
#  390|   #else
#  391|   		/* Seed the standard prng, only uses the first

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1005]
ldns-1.8.4/ldns-1.8.4_python3/util.c:389:17: warning[-Wanalyzer-malloc-leak]: leak of 'rand_f'
ldns-1.8.4/ldns-1.8.4_python3/util.c:356:11: branch_false: following 'false' branch (when 'seed' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/util.c:360:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/util.c:360:12: branch_true: following 'true' branch (when 'fd' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/util.c:361:31: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/util.c:361:31: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/util.c:361:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/util.c:374:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/util.c:381:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/util.c:389:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/util.c:389:17: danger: 'rand_f' leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  387|   		/* Seed the OpenSSL prng (most systems have it seeded
#  388|   		   automatically, in that case this call just adds entropy */
#  389|-> 		RAND_seed(seed, (int) size);
#  390|   #else
#  391|   		/* Seed the standard prng, only uses the first

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1006]
ldns-1.8.4/ldns-1.8.4_python3/util.c:389:17: warning[-Wanalyzer-malloc-leak]: leak of 'seed'
ldns-1.8.4/ldns-1.8.4_python3/util.c:355:16: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/util.c:356:11: branch_false: following 'false' branch (when 'seed' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/util.c:360:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/util.c:360:12: branch_false: following 'false' branch (when 'fd' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/util.c:378:24: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/util.c:381:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/util.c:389:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/util.c:389:17: danger: 'seed' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  387|   		/* Seed the OpenSSL prng (most systems have it seeded
#  388|   		   automatically, in that case this call just adds entropy */
#  389|-> 		RAND_seed(seed, (int) size);
#  390|   #else
#  391|   		/* Seed the standard prng, only uses the first

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1007]
ldns-1.8.4/ldns-1.8.4_python3/wire2host.c:294:35: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ldns-1.8.4/ldns-1.8.4_python3/wire2host.c:168:9: branch_true: following 'true' branch (when 'rr' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/wire2host.c:170:39: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/wire2host.c:172:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/wire2host.c:176:38: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/wire2host.c:179:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/wire2host.c:186:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/wire2host.c:187:25: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/wire2host.c:186:16: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/wire2host.c:191:32: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/wire2host.c:285:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/wire2host.c:288:32: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/wire2host.c:288:32: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/wire2host.c:289:28: branch_false: following 'false' branch (when 'data' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/wire2host.c:292:38: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/wire2host.c:294:35: danger: 'data' leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  292|   			memcpy(data, &wire[*pos], cur_rdf_length);
#  293|   
#  294|-> 			cur_rdf = ldns_rdf_new(cur_rdf_type,
#  295|   					cur_rdf_length, data);
#  296|   			*pos = *pos + cur_rdf_length;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1008]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:55:16: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:248:36: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:253:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:288:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:306:30: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:306:30: call_function: calling 'ldns_zone_push_rr' from 'ldns_zone_new_frm_fp_l'
#   53|   ldns_zone_push_rr(ldns_zone *z, ldns_rr *rr)
#   54|   {
#   55|-> 	return ldns_rr_list_push_rr(ldns_zone_rrs(z), rr);
#   56|   }
#   57|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1009]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:174:19: warning[-Wanalyzer-malloc-leak]: leak of 'z'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:169:13: acquire_memory: allocated here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:170:12: branch_false: following 'false' branch (when 'z' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:174:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:174:19: danger: 'z' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  172|   	}
#  173|   
#  174|-> 	z->_rrs = ldns_rr_list_new();
#  175|   	if (!z->_rrs) {
#  176|   		LDNS_FREE(z);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1010]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: danger: 'ldns_zone_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
#  241|   		if (ttl_from_TTL)
#  242|   			my_ttl = default_ttl;
#  243|-> 		s = _ldns_rr_new_frm_fp_l_internal(&rr, fp, &my_ttl, &my_origin,
#  244|   				&my_prev, line_nr, &explicit_ttl);
#  245|   		switch (s) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1011]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:253:50: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:247:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:248:36: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:248:36: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:253:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:253:50: danger: 'ldns_zone_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/5)
#  251|   					 * (RFC 1035 Section 5.1)
#  252|   					 */
#  253|-> 					my_ttl = ldns_rr_ttl(rr);
#  254|   				}
#  255|   			/* When ttl is implicit, try to adhere to the rules as

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1012]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:260:36: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:247:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:260:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:260:36: danger: 'ldns_zone_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/5)
#  258|   			 * which hashes the TTL too.
#  259|   			 */
#  260|-> 			} else if (ldns_rr_get_type(rr) == LDNS_RR_TYPE_SIG
#  261|   			       ||  ldns_rr_get_type(rr) == LDNS_RR_TYPE_RRSIG) {
#  262|   				if (ldns_rr_rd_count(rr) >= 4

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1013]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:261:36: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:247:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:260:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:260:35: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:261:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:261:36: danger: 'ldns_zone_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/5)
#  259|   			 */
#  260|   			} else if (ldns_rr_get_type(rr) == LDNS_RR_TYPE_SIG
#  261|-> 			       ||  ldns_rr_get_type(rr) == LDNS_RR_TYPE_RRSIG) {
#  262|   				if (ldns_rr_rd_count(rr) >= 4
#  263|   				&&  ldns_rdf_get_type(ldns_rr_rdf(rr, 3)) == LDNS_RDF_TYPE_INT32)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1014]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:262:37: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:247:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:260:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:262:37: danger: 'ldns_zone_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/5)
#  260|   			} else if (ldns_rr_get_type(rr) == LDNS_RR_TYPE_SIG
#  261|   			       ||  ldns_rr_get_type(rr) == LDNS_RR_TYPE_RRSIG) {
#  262|-> 				if (ldns_rr_rd_count(rr) >= 4
#  263|   				&&  ldns_rdf_get_type(ldns_rr_rdf(rr, 3)) == LDNS_RDF_TYPE_INT32)
#  264|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1015]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:263:37: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:247:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:260:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:262:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:263:55: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:263:37: danger: 'ldns_zone_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/5)
#  261|   			       ||  ldns_rr_get_type(rr) == LDNS_RR_TYPE_RRSIG) {
#  262|   				if (ldns_rr_rd_count(rr) >= 4
#  263|-> 				&&  ldns_rdf_get_type(ldns_rr_rdf(rr, 3)) == LDNS_RDF_TYPE_INT32)
#  264|   
#  265|   					/* SIG without explicit ttl get ttl

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1016]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:263:55: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:247:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:260:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:262:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:263:55: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:263:55: danger: 'ldns_zone_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/5)
#  261|   			       ||  ldns_rr_get_type(rr) == LDNS_RR_TYPE_RRSIG) {
#  262|   				if (ldns_rr_rd_count(rr) >= 4
#  263|-> 				&&  ldns_rdf_get_type(ldns_rr_rdf(rr, 3)) == LDNS_RDF_TYPE_INT32)
#  264|   
#  265|   					/* SIG without explicit ttl get ttl

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1017]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:273:41: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:247:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:260:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:262:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:263:55: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:262:37: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:275:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:273:41: danger: 'ldns_zone_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/5)
#  271|   					 * (RFC 4034 Section 3)
#  272|   					 */
#  273|-> 					ldns_rr_set_ttl(rr,
#  274|   					    ldns_rdf2native_int32(
#  275|   					        ldns_rr_rdf(rr, 3)));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1018]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:275:49: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:247:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:260:36: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:262:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:263:55: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:262:37: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:275:49: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:275:49: danger: 'ldns_zone_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/5)
#  273|   					ldns_rr_set_ttl(rr,
#  274|   					    ldns_rdf2native_int32(
#  275|-> 					        ldns_rr_rdf(rr, 3)));
#  276|   
#  277|   			} else if (prev_rr

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1019]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:278:36: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_true: following 'true' branch (when 'origin' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:225:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:226:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:228:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:229:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:248:36: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:253:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:288:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:306:30: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:306:28: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:278:36: danger: 'ldns_zone_new()' leaks here; was allocated at [(10)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/9)
#  276|   
#  277|   			} else if (prev_rr
#  278|-> 			       &&  ldns_rr_get_type(prev_rr) == ldns_rr_get_type(rr)
#  279|   			       &&  ldns_dname_compare( ldns_rr_owner(prev_rr)
#  280|   			                             , ldns_rr_owner(rr)) == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1020]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:278:65: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_true: following 'true' branch (when 'origin' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:225:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:226:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:228:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:229:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:248:36: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:253:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:288:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:306:30: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:306:28: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:278:65: danger: 'ldns_zone_new()' leaks here; was allocated at [(10)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/9)
#  276|   
#  277|   			} else if (prev_rr
#  278|-> 			       &&  ldns_rr_get_type(prev_rr) == ldns_rr_get_type(rr)
#  279|   			       &&  ldns_dname_compare( ldns_rr_owner(prev_rr)
#  280|   			                             , ldns_rr_owner(rr)) == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1021]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:279:36: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_true: following 'true' branch (when 'origin' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:225:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:226:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:228:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:229:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:248:36: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:253:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:288:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:306:30: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:306:28: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:279:36: danger: 'ldns_zone_new()' leaks here; was allocated at [(10)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/9)
#  277|   			} else if (prev_rr
#  278|   			       &&  ldns_rr_get_type(prev_rr) == ldns_rr_get_type(rr)
#  279|-> 			       &&  ldns_dname_compare( ldns_rr_owner(prev_rr)
#  280|   			                             , ldns_rr_owner(rr)) == 0)
#  281|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1022]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:279:56: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_true: following 'true' branch (when 'origin' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:225:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:226:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:228:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:229:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:248:36: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:253:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:288:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:306:30: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:306:28: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:279:56: danger: 'ldns_zone_new()' leaks here; was allocated at [(10)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/9)
#  277|   			} else if (prev_rr
#  278|   			       &&  ldns_rr_get_type(prev_rr) == ldns_rr_get_type(rr)
#  279|-> 			       &&  ldns_dname_compare( ldns_rr_owner(prev_rr)
#  280|   			                             , ldns_rr_owner(rr)) == 0)
#  281|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1023]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:280:56: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_true: following 'true' branch (when 'origin' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:225:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:226:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:228:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:229:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:248:36: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:253:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:288:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:306:30: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:306:28: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:280:56: danger: 'ldns_zone_new()' leaks here; was allocated at [(10)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/9)
#  278|   			       &&  ldns_rr_get_type(prev_rr) == ldns_rr_get_type(rr)
#  279|   			       &&  ldns_dname_compare( ldns_rr_owner(prev_rr)
#  280|-> 			                             , ldns_rr_owner(rr)) == 0)
#  281|   
#  282|   				/* "TTLs of all RRs in an RRSet must be the same"

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1024]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:285:33: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_true: following 'true' branch (when 'origin' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:225:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:226:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:228:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:229:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:248:36: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:253:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:288:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:306:30: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:306:28: branch_true: following 'true' branch...
 branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:285:33: danger: 'ldns_zone_new()' leaks here; was allocated at [(10)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/9)
#  283|   				 * (RFC 2881 Section 5.2)
#  284|   				 */
#  285|-> 				ldns_rr_set_ttl(rr, ldns_rr_ttl(prev_rr));
#  286|   
#  287|   			prev_rr = rr;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1025]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:288:29: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:248:36: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:253:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:288:29: danger: 'ldns_zone_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/5)
#  286|   
#  287|   			prev_rr = rr;
#  288|-> 			if (ldns_rr_get_type(rr) == LDNS_RR_TYPE_SOA) {
#  289|   				if (soa_seen) {
#  290|   					/* second SOA 

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1026]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:300:53: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:248:36: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:253:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:288:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:289:36: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:289:36: branch_false: following 'false' branch (when 'soa_seen == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:297:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:299:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:300:68: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:300:53: danger: 'ldns_zone_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/5)
#  298|   				/* set origin to soa if not specified */
#  299|   				if (!my_origin) {
#  300|-> 					my_origin = ldns_rdf_clone(ldns_rr_owner(rr));
#  301|   				}
#  302|   				continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1027]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:300:68: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:248:36: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:253:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:288:28: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:289:36: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:289:36: branch_false: following 'false' branch (when 'soa_seen == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:297:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:299:36: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:300:68: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:300:68: danger: 'ldns_zone_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/5)
#  298|   				/* set origin to soa if not specified */
#  299|   				if (!my_origin) {
#  300|-> 					my_origin = ldns_rdf_clone(ldns_rr_owner(rr));
#  301|   				}
#  302|   				continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1028]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:307:33: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:248:36: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:253:50: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:288:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:306:30: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:306:28: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:307:33: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:307:33: danger: 'ldns_zone_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/5)
#  305|   			/* a normal RR - as sofar the DNS is normal */
#  306|   			if (!ldns_zone_push_rr(newzone, rr)) {
#  307|-> 				ldns_rr_free(rr);
#  308|   				goto error;
#  309|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1029]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:331:13: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:331:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:331:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:334:13: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:334:12: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:337:12: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:337:12: branch_false: following 'false' branch (when 'z' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:340:17: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:340:17: call_function: calling 'ldns_zone_free' from 'ldns_zone_new_frm_fp_l'
#  329|   	}
#  330|   
#  331|-> 	if (my_origin) {
#  332|   		ldns_rdf_deep_free(my_origin);
#  333|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1030]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:332:17: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_true: following 'true' branch (when 'origin' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:225:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:226:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:228:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:229:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:331:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:332:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:332:17: danger: 'ldns_zone_new()' leaks here; was allocated at [(10)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/9)
#  330|   
#  331|   	if (my_origin) {
#  332|-> 		ldns_rdf_deep_free(my_origin);
#  333|   	}
#  334|   	if (my_prev) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1031]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:335:17: warning[-Wanalyzer-malloc-leak]: leak of 'ldns_zone_new()'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_true: following 'true' branch (when 'origin' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:225:29: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:226:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:228:29: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:229:20: branch_false: following 'false' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:334:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:335:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:335:17: danger: 'ldns_zone_new()' leaks here; was allocated at [(10)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/9)
#  333|   	}
#  334|   	if (my_prev) {
#  335|-> 		ldns_rdf_deep_free(my_prev);
#  336|   	}
#  337|   	if (z) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1032]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:347:17: warning[-Wanalyzer-malloc-leak]: leak of 'newzone'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:346:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:347:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:347:17: danger: 'newzone' leaks here; was allocated at [(6)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/5)
#  345|   error:
#  346|   	if (my_origin) {
#  347|-> 		ldns_rdf_deep_free(my_origin);
#  348|   	}
#  349|   	if (my_prev) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1033]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:350:17: warning[-Wanalyzer-malloc-leak]: leak of 'newzone'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:349:12: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:350:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:350:17: danger: 'newzone' leaks here; was allocated at [(6)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/5)
#  348|   	}
#  349|   	if (my_prev) {
#  350|-> 		ldns_rdf_deep_free(my_prev);
#  351|   	}
#  352|   	if (newzone) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1034]
ldns-1.8.4/ldns-1.8.4_python3/zone.c:371:9: warning[-Wanalyzer-malloc-leak]: leak of 'newzone'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:198:1: enter_function: entry to 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:224:12: branch_false: following 'false' branch (when 'origin' is NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: call_function: calling 'ldns_zone_new' from 'ldns_zone_new_frm_fp_l'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:232:19: return_function: returning to 'ldns_zone_new_frm_fp_l' from 'ldns_zone_new'
ldns-1.8.4/ldns-1.8.4_python3/zone.c:233:12: branch_false: following 'false' branch...
 branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:235:15: branch_true: following 'true' branch...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:241:20: branch_false: following 'false' branch (when 'ttl_from_TTL == 0')...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:243:21: branch_false: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:352:12: branch_true: following 'true' branch (when 'newzone' is non-NULL)...
ldns-1.8.4/ldns-1.8.4_python3/zone.c:353:17: branch_true: ...to here
ldns-1.8.4/ldns-1.8.4_python3/zone.c:353:17: call_function: calling 'ldns_zone_free' from 'ldns_zone_new_frm_fp_l'
#  369|   ldns_zone_free(ldns_zone *zone) 
#  370|   {
#  371|-> 	ldns_rr_list_free(zone->_rrs);
#  372|   	LDNS_FREE(zone);
#  373|   }

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-81.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameldns-1.8.4-8.fc44
store-results-to/tmp/tmpopy_eq3j/ldns-1.8.4-8.fc44.tar.xz
time-created2025-10-28 19:00:14
time-finished2025-10-28 19:08:57
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpopy_eq3j/ldns-1.8.4-8.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpopy_eq3j/ldns-1.8.4-8.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9