libtirpc-1.3.7-0.fc44

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
libtirpc-1.3.7/src/auth_gss.c:198:17: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_gss.c:243:1: enter_function: entry to 'authgss_create_default'
libtirpc-1.3.7/src/auth_gss.c:260:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_gss.c:267:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:267:16: call_function: calling 'authgss_create' from 'authgss_create_default'
#  196|   	}
#  197|   	if ((gd = calloc(sizeof(*gd), 1)) == NULL) {
#  198|-> 		rpc_createerr.cf_stat = RPC_SYSTEMERROR;
#  199|   		rpc_createerr.cf_error.re_errno = ENOMEM;
#  200|   		free(auth);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libtirpc-1.3.7/src/auth_gss.c:199:17: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_gss.c:243:1: enter_function: entry to 'authgss_create_default'
libtirpc-1.3.7/src/auth_gss.c:260:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_gss.c:267:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:267:16: call_function: calling 'authgss_create' from 'authgss_create_default'
#  197|   	if ((gd = calloc(sizeof(*gd), 1)) == NULL) {
#  198|   		rpc_createerr.cf_stat = RPC_SYSTEMERROR;
#  199|-> 		rpc_createerr.cf_error.re_errno = ENOMEM;
#  200|   		free(auth);
#  201|   		return (NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
libtirpc-1.3.7/src/auth_gss.c:203:9: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_gss.c:243:1: enter_function: entry to 'authgss_create_default'
libtirpc-1.3.7/src/auth_gss.c:260:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_gss.c:267:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:267:16: call_function: calling 'authgss_create' from 'authgss_create_default'
#  201|   		return (NULL);
#  202|   	}
#  203|-> 	LIBTIRPC_DEBUG(3, ("authgss_create: name is %p", name));
#  204|   	if (name != GSS_C_NO_NAME) {
#  205|   		if (gss_duplicate_name(&min_stat, name, &gd->name)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
libtirpc-1.3.7/src/auth_gss.c:203:9: warning[-Wanalyzer-malloc-leak]: leak of 'gd'
libtirpc-1.3.7/src/auth_gss.c:243:1: enter_function: entry to 'authgss_create_default'
libtirpc-1.3.7/src/auth_gss.c:260:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_gss.c:267:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:267:16: call_function: calling 'authgss_create' from 'authgss_create_default'
#  201|   		return (NULL);
#  202|   	}
#  203|-> 	LIBTIRPC_DEBUG(3, ("authgss_create: name is %p", name));
#  204|   	if (name != GSS_C_NO_NAME) {
#  205|   		if (gss_duplicate_name(&min_stat, name, &gd->name)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
libtirpc-1.3.7/src/auth_gss.c:205:21: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_gss.c:243:1: enter_function: entry to 'authgss_create_default'
libtirpc-1.3.7/src/auth_gss.c:260:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_gss.c:267:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:267:16: call_function: calling 'authgss_create' from 'authgss_create_default'
#  203|   	LIBTIRPC_DEBUG(3, ("authgss_create: name is %p", name));
#  204|   	if (name != GSS_C_NO_NAME) {
#  205|-> 		if (gss_duplicate_name(&min_stat, name, &gd->name)
#  206|   						!= GSS_S_COMPLETE) {
#  207|   			rpc_createerr.cf_stat = RPC_SYSTEMERROR;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
libtirpc-1.3.7/src/auth_gss.c:205:21: warning[-Wanalyzer-malloc-leak]: leak of 'gd'
libtirpc-1.3.7/src/auth_gss.c:243:1: enter_function: entry to 'authgss_create_default'
libtirpc-1.3.7/src/auth_gss.c:260:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_gss.c:267:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:267:16: call_function: calling 'authgss_create' from 'authgss_create_default'
#  203|   	LIBTIRPC_DEBUG(3, ("authgss_create: name is %p", name));
#  204|   	if (name != GSS_C_NO_NAME) {
#  205|-> 		if (gss_duplicate_name(&min_stat, name, &gd->name)
#  206|   						!= GSS_S_COMPLETE) {
#  207|   			rpc_createerr.cf_stat = RPC_SYSTEMERROR;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
libtirpc-1.3.7/src/auth_gss.c:207:25: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_gss.c:243:1: enter_function: entry to 'authgss_create_default'
libtirpc-1.3.7/src/auth_gss.c:260:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_gss.c:267:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:267:16: call_function: calling 'authgss_create' from 'authgss_create_default'
#  205|   		if (gss_duplicate_name(&min_stat, name, &gd->name)
#  206|   						!= GSS_S_COMPLETE) {
#  207|-> 			rpc_createerr.cf_stat = RPC_SYSTEMERROR;
#  208|   			rpc_createerr.cf_error.re_errno = ENOMEM;
#  209|   			free(auth);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
libtirpc-1.3.7/src/auth_gss.c:208:25: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_gss.c:243:1: enter_function: entry to 'authgss_create_default'
libtirpc-1.3.7/src/auth_gss.c:260:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_gss.c:267:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:267:16: call_function: calling 'authgss_create' from 'authgss_create_default'
#  206|   						!= GSS_S_COMPLETE) {
#  207|   			rpc_createerr.cf_stat = RPC_SYSTEMERROR;
#  208|-> 			rpc_createerr.cf_error.re_errno = ENOMEM;
#  209|   			free(auth);
#  210|   			free(gd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
libtirpc-1.3.7/src/auth_gss.c:217:9: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_gss.c:243:1: enter_function: entry to 'authgss_create_default'
libtirpc-1.3.7/src/auth_gss.c:260:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_gss.c:267:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:267:16: call_function: calling 'authgss_create' from 'authgss_create_default'
#  215|   		gd->name = name;
#  216|   
#  217|-> 	LIBTIRPC_DEBUG(3, ("authgss_create: gd->name is %p", gd->name));
#  218|   	gd->clnt = clnt;
#  219|   	gd->ctx = GSS_C_NO_CONTEXT;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
libtirpc-1.3.7/src/auth_gss.c:217:9: warning[-Wanalyzer-malloc-leak]: leak of 'gd'
libtirpc-1.3.7/src/auth_gss.c:243:1: enter_function: entry to 'authgss_create_default'
libtirpc-1.3.7/src/auth_gss.c:260:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_gss.c:267:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:267:16: call_function: calling 'authgss_create' from 'authgss_create_default'
#  215|   		gd->name = name;
#  216|   
#  217|-> 	LIBTIRPC_DEBUG(3, ("authgss_create: gd->name is %p", gd->name));
#  218|   	gd->clnt = clnt;
#  219|   	gd->ctx = GSS_C_NO_CONTEXT;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
libtirpc-1.3.7/src/auth_gss.c:829:20: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_gss.c:784:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_gss.c:787:13: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:787:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_gss.c:790:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:791:12: branch_false: following 'false' branch (when 'qop' is NULL)...
libtirpc-1.3.7/src/auth_gss.c:798:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:819:16: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_gss.c:821:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_gss.c:827:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:829:20: danger: 'auth' leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
#  827|   	sname.value = principal;
#  828|   	sname.length = strlen(principal);
#  829|-> 	maj_stat = gss_import_name(&min_stat, &sname,
#  830|   					(gss_OID)GSS_C_NT_HOSTBASED_SERVICE,
#  831|   					&gd->name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
libtirpc-1.3.7/src/auth_gss.c:829:20: warning[-Wanalyzer-malloc-leak]: leak of 'gd'
libtirpc-1.3.7/src/auth_gss.c:784:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_gss.c:787:13: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:787:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_gss.c:790:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:791:12: branch_false: following 'false' branch (when 'qop' is NULL)...
libtirpc-1.3.7/src/auth_gss.c:798:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:820:14: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_gss.c:821:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_gss.c:827:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_gss.c:829:20: danger: 'gd' leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
#  827|   	sname.value = principal;
#  828|   	sname.length = strlen(principal);
#  829|-> 	maj_stat = gss_import_name(&min_stat, &sname,
#  830|   					(gss_OID)GSS_C_NT_HOSTBASED_SERVICE,
#  831|   					&gd->name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
libtirpc-1.3.7/src/auth_time.c:172:49: warning[-Wanalyzer-malloc-leak]: leak of 'strdup("tcp")'
libtirpc-1.3.7/src/auth_time.c:153:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:156:12: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:158:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:171:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:171:21: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:179:38: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_time.c:172:49: danger: 'strdup("tcp")' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  170|   	 */
#  171|   	for (i = 0; (he->h_addr_list[i] != NULL) && (num_ep < maxep);
#  172|-> 						i++, num_ep++) {
#  173|   		struct in_addr *a;
#  174|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
libtirpc-1.3.7/src/auth_time.c:178:38: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(&hname)'
libtirpc-1.3.7/src/auth_time.c:153:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:156:12: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:158:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:171:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:171:21: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:177:37: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_time.c:178:38: danger: 'strdup(&hname)' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  176|   		snprintf(hname, sizeof(hname), "%s.0.111", inet_ntoa(*a));
#  177|   		eps[num_ep].uaddr = strdup(hname);
#  178|-> 		eps[num_ep].family = strdup("inet");
#  179|   		eps[num_ep].proto =  strdup("tcp");
#  180|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
libtirpc-1.3.7/src/auth_time.c:179:38: warning[-Wanalyzer-malloc-leak]: leak of 'strdup("inet")'
libtirpc-1.3.7/src/auth_time.c:153:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:156:12: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:158:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:171:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:171:21: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:178:38: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_time.c:179:38: danger: 'strdup("inet")' leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  177|   		eps[num_ep].uaddr = strdup(hname);
#  178|   		eps[num_ep].family = strdup("inet");
#  179|-> 		eps[num_ep].proto =  strdup("tcp");
#  180|   	}
#  181|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def16]
libtirpc-1.3.7/src/auth_time.c:280:29: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL '*<unknown>.proto' where non-null expected
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:280:29: danger: argument 1 ('*<unknown>.proto') from [(18)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/17) could be NULL where non-null expected
#  278|   		for (i = 0;
#  279|   			(i < epl) && ((udp_ep == -1) || (tcp_ep == -1)); i++) {
#  280|-> 			if (strcasecmp(ep[i].proto, "udp") == 0)
#  281|   				udp_ep = i;
#  282|   			if (strcasecmp(ep[i].proto, "tcp") == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
libtirpc-1.3.7/src/auth_time.c:331:16: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:331:16: danger: 'teps[0].family' leaks here; was allocated at [(18)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/17)
#  329|   	 * we could consider trying the rtime call first.
#  330|   	 */
#  331|-> 	clnt = clnttcp_create(&sin, RPCBPROG, RPCBVERS, &s, 0, 0);
#  332|   	if (clnt == NULL) {
#  333|   		msg("unable to create client handle to rpcbind.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
libtirpc-1.3.7/src/auth_time.c:331:16: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch (when 'i < epl')...
libtirpc-1.3.7/src/auth_time.c:279:39: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:331:16: danger: 'teps[0].proto' leaks here; was allocated at [(18)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/17)
#  329|   	 * we could consider trying the rtime call first.
#  330|   	 */
#  331|-> 	clnt = clnttcp_create(&sin, RPCBPROG, RPCBVERS, &s, 0, 0);
#  332|   	if (clnt == NULL) {
#  333|   		msg("unable to create client handle to rpcbind.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
libtirpc-1.3.7/src/auth_time.c:331:16: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:331:16: danger: 'teps[0].uaddr' leaks here; was allocated at [(18)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/17)
#  329|   	 * we could consider trying the rtime call first.
#  330|   	 */
#  331|-> 	clnt = clnttcp_create(&sin, RPCBPROG, RPCBVERS, &s, 0, 0);
#  332|   	if (clnt == NULL) {
#  333|   		msg("unable to create client handle to rpcbind.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
libtirpc-1.3.7/src/auth_time.c:331:16: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:331:16: danger: 'teps[needfree].family' leaks here; was allocated at [(22)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/21)
#  329|   	 * we could consider trying the rtime call first.
#  330|   	 */
#  331|-> 	clnt = clnttcp_create(&sin, RPCBPROG, RPCBVERS, &s, 0, 0);
#  332|   	if (clnt == NULL) {
#  333|   		msg("unable to create client handle to rpcbind.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
libtirpc-1.3.7/src/auth_time.c:331:16: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:331:16: danger: 'teps[needfree].proto' leaks here; was allocated at [(22)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/21)
#  329|   	 * we could consider trying the rtime call first.
#  330|   	 */
#  331|-> 	clnt = clnttcp_create(&sin, RPCBPROG, RPCBVERS, &s, 0, 0);
#  332|   	if (clnt == NULL) {
#  333|   		msg("unable to create client handle to rpcbind.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
libtirpc-1.3.7/src/auth_time.c:331:16: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:331:16: danger: 'teps[needfree].uaddr' leaks here; was allocated at [(22)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/21)
#  329|   	 * we could consider trying the rtime call first.
#  330|   	 */
#  331|-> 	clnt = clnttcp_create(&sin, RPCBPROG, RPCBVERS, &s, 0, 0);
#  332|   	if (clnt == NULL) {
#  333|   		msg("unable to create client handle to rpcbind.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
libtirpc-1.3.7/src/auth_time.c:342:18: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:342:18: danger: 'teps[0].family' leaks here; was allocated at [(18)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/17)
#  340|   	tv.tv_usec = 0;
#  341|   	time_valid = 0;
#  342|-> 	status = clnt_call(clnt, RPCBPROC_GETTIME, (xdrproc_t)xdr_void, NULL,
#  343|   					(xdrproc_t)xdr_u_long, &thetime, tv);
#  344|   	/*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
libtirpc-1.3.7/src/auth_time.c:342:18: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch (when 'i < epl')...
libtirpc-1.3.7/src/auth_time.c:279:39: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:342:18: danger: 'teps[0].proto' leaks here; was allocated at [(18)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/17)
#  340|   	tv.tv_usec = 0;
#  341|   	time_valid = 0;
#  342|-> 	status = clnt_call(clnt, RPCBPROC_GETTIME, (xdrproc_t)xdr_void, NULL,
#  343|   					(xdrproc_t)xdr_u_long, &thetime, tv);
#  344|   	/*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
libtirpc-1.3.7/src/auth_time.c:342:18: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:342:18: danger: 'teps[0].uaddr' leaks here; was allocated at [(18)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/17)
#  340|   	tv.tv_usec = 0;
#  341|   	time_valid = 0;
#  342|-> 	status = clnt_call(clnt, RPCBPROC_GETTIME, (xdrproc_t)xdr_void, NULL,
#  343|   					(xdrproc_t)xdr_u_long, &thetime, tv);
#  344|   	/*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
libtirpc-1.3.7/src/auth_time.c:342:18: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:342:18: danger: 'teps[needfree].family' leaks here; was allocated at [(22)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/21)
#  340|   	tv.tv_usec = 0;
#  341|   	time_valid = 0;
#  342|-> 	status = clnt_call(clnt, RPCBPROC_GETTIME, (xdrproc_t)xdr_void, NULL,
#  343|   					(xdrproc_t)xdr_u_long, &thetime, tv);
#  344|   	/*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
libtirpc-1.3.7/src/auth_time.c:342:18: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:342:18: danger: 'teps[needfree].proto' leaks here; was allocated at [(22)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/21)
#  340|   	tv.tv_usec = 0;
#  341|   	time_valid = 0;
#  342|-> 	status = clnt_call(clnt, RPCBPROC_GETTIME, (xdrproc_t)xdr_void, NULL,
#  343|   					(xdrproc_t)xdr_u_long, &thetime, tv);
#  344|   	/*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
libtirpc-1.3.7/src/auth_time.c:342:18: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:342:18: danger: 'teps[needfree].uaddr' leaks here; was allocated at [(22)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/21)
#  340|   	tv.tv_usec = 0;
#  341|   	time_valid = 0;
#  342|-> 	status = clnt_call(clnt, RPCBPROC_GETTIME, (xdrproc_t)xdr_void, NULL,
#  343|   					(xdrproc_t)xdr_u_long, &thetime, tv);
#  344|   	/*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
libtirpc-1.3.7/src/auth_time.c:356:25: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:356:25: danger: 'teps[0].family' leaks here; was allocated at [(18)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/17)
#  354|   		/* Blow away possible stale CLNT handle. */
#  355|   		if (clnt != NULL) {
#  356|-> 			clnt_destroy(clnt);
#  357|   			clnt = NULL;
#  358|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
libtirpc-1.3.7/src/auth_time.c:356:25: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch (when 'i < epl')...
libtirpc-1.3.7/src/auth_time.c:279:39: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:356:25: danger: 'teps[0].proto' leaks here; was allocated at [(18)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/17)
#  354|   		/* Blow away possible stale CLNT handle. */
#  355|   		if (clnt != NULL) {
#  356|-> 			clnt_destroy(clnt);
#  357|   			clnt = NULL;
#  358|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
libtirpc-1.3.7/src/auth_time.c:356:25: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:356:25: danger: 'teps[0].uaddr' leaks here; was allocated at [(18)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/17)
#  354|   		/* Blow away possible stale CLNT handle. */
#  355|   		if (clnt != NULL) {
#  356|-> 			clnt_destroy(clnt);
#  357|   			clnt = NULL;
#  358|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
libtirpc-1.3.7/src/auth_time.c:356:25: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:356:25: danger: 'teps[needfree].family' leaks here; was allocated at [(22)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/21)
#  354|   		/* Blow away possible stale CLNT handle. */
#  355|   		if (clnt != NULL) {
#  356|-> 			clnt_destroy(clnt);
#  357|   			clnt = NULL;
#  358|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
libtirpc-1.3.7/src/auth_time.c:356:25: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:356:25: danger: 'teps[needfree].proto' leaks here; was allocated at [(22)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/21)
#  354|   		/* Blow away possible stale CLNT handle. */
#  355|   		if (clnt != NULL) {
#  356|-> 			clnt_destroy(clnt);
#  357|   			clnt = NULL;
#  358|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
libtirpc-1.3.7/src/auth_time.c:356:25: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:356:25: danger: 'teps[needfree].uaddr' leaks here; was allocated at [(22)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/21)
#  354|   		/* Blow away possible stale CLNT handle. */
#  355|   		if (clnt != NULL) {
#  356|-> 			clnt_destroy(clnt);
#  357|   			clnt = NULL;
#  358|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def35]
libtirpc-1.3.7/src/auth_time.c:392:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor 's'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:376:21: acquire_resource: socket created here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:29: danger: 's' leaks here
#  390|   			int res;
#  391|   
#  392|-> 			if (sendto(s, &thetime, sizeof(thetime), 0,
#  393|   				(struct sockaddr *)&sin, sizeof(sin)) == -1) {
#  394|   				msg("udp : sendto failed.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
libtirpc-1.3.7/src/auth_time.c:392:29: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:29: danger: 'teps[0].family' leaks here; was allocated at [(18)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/17)
#  390|   			int res;
#  391|   
#  392|-> 			if (sendto(s, &thetime, sizeof(thetime), 0,
#  393|   				(struct sockaddr *)&sin, sizeof(sin)) == -1) {
#  394|   				msg("udp : sendto failed.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
libtirpc-1.3.7/src/auth_time.c:392:29: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch (when 'i < epl')...
libtirpc-1.3.7/src/auth_time.c:279:39: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:29: danger: 'teps[0].proto' leaks here; was allocated at [(18)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/17)
#  390|   			int res;
#  391|   
#  392|-> 			if (sendto(s, &thetime, sizeof(thetime), 0,
#  393|   				(struct sockaddr *)&sin, sizeof(sin)) == -1) {
#  394|   				msg("udp : sendto failed.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
libtirpc-1.3.7/src/auth_time.c:392:29: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:29: danger: 'teps[0].uaddr' leaks here; was allocated at [(18)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/17)
#  390|   			int res;
#  391|   
#  392|-> 			if (sendto(s, &thetime, sizeof(thetime), 0,
#  393|   				(struct sockaddr *)&sin, sizeof(sin)) == -1) {
#  394|   				msg("udp : sendto failed.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
libtirpc-1.3.7/src/auth_time.c:392:29: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:29: danger: 'teps[needfree].family' leaks here; was allocated at [(22)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/21)
#  390|   			int res;
#  391|   
#  392|-> 			if (sendto(s, &thetime, sizeof(thetime), 0,
#  393|   				(struct sockaddr *)&sin, sizeof(sin)) == -1) {
#  394|   				msg("udp : sendto failed.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
libtirpc-1.3.7/src/auth_time.c:392:29: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:29: danger: 'teps[needfree].proto' leaks here; was allocated at [(22)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/21)
#  390|   			int res;
#  391|   
#  392|-> 			if (sendto(s, &thetime, sizeof(thetime), 0,
#  393|   				(struct sockaddr *)&sin, sizeof(sin)) == -1) {
#  394|   				msg("udp : sendto failed.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
libtirpc-1.3.7/src/auth_time.c:392:29: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:29: danger: 'teps[needfree].uaddr' leaks here; was allocated at [(22)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/21)
#  390|   			int res;
#  391|   
#  392|-> 			if (sendto(s, &thetime, sizeof(thetime), 0,
#  393|   				(struct sockaddr *)&sin, sizeof(sin)) == -1) {
#  394|   				msg("udp : sendto failed.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
libtirpc-1.3.7/src/auth_time.c:400:39: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:28: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: following 'true' branch (when '__i != 16')...
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_false: following 'false' branch (when '__i == 16')...
libtirpc-1.3.7/src/auth_time.c:399:33: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:400:39: danger: 'teps[0].family' leaks here; was allocated at [(18)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/17)
#  398|   				FD_ZERO(&readfds);
#  399|   				FD_SET(s, &readfds);
#  400|-> 				res = select(_rpc_dtablesize(), &readfds,
#  401|   				     (fd_set *)NULL, (fd_set *)NULL, &timeout);
#  402|   			} while (res < 0 && errno == EINTR);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
libtirpc-1.3.7/src/auth_time.c:400:39: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch (when 'i < epl')...
libtirpc-1.3.7/src/auth_time.c:279:39: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:28: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: following 'true' branch (when '__i != 16')...
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_false: following 'false' branch (when '__i == 16')...
libtirpc-1.3.7/src/auth_time.c:399:33: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:400:39: danger: 'teps[0].proto' leaks here; was allocated at [(18)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/17)
#  398|   				FD_ZERO(&readfds);
#  399|   				FD_SET(s, &readfds);
#  400|-> 				res = select(_rpc_dtablesize(), &readfds,
#  401|   				     (fd_set *)NULL, (fd_set *)NULL, &timeout);
#  402|   			} while (res < 0 && errno == EINTR);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
libtirpc-1.3.7/src/auth_time.c:400:39: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:28: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: following 'true' branch (when '__i != 16')...
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_false: following 'false' branch (when '__i == 16')...
libtirpc-1.3.7/src/auth_time.c:399:33: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:400:39: danger: 'teps[0].uaddr' leaks here; was allocated at [(18)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/17)
#  398|   				FD_ZERO(&readfds);
#  399|   				FD_SET(s, &readfds);
#  400|-> 				res = select(_rpc_dtablesize(), &readfds,
#  401|   				     (fd_set *)NULL, (fd_set *)NULL, &timeout);
#  402|   			} while (res < 0 && errno == EINTR);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
libtirpc-1.3.7/src/auth_time.c:400:39: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:28: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: following 'true' branch (when '__i != 16')...
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_false: following 'false' branch (when '__i == 16')...
libtirpc-1.3.7/src/auth_time.c:399:33: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:400:39: danger: 'teps[needfree].family' leaks here; was allocated at [(22)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/21)
#  398|   				FD_ZERO(&readfds);
#  399|   				FD_SET(s, &readfds);
#  400|-> 				res = select(_rpc_dtablesize(), &readfds,
#  401|   				     (fd_set *)NULL, (fd_set *)NULL, &timeout);
#  402|   			} while (res < 0 && errno == EINTR);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
libtirpc-1.3.7/src/auth_time.c:400:39: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:28: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: following 'true' branch (when '__i != 16')...
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_false: following 'false' branch (when '__i == 16')...
libtirpc-1.3.7/src/auth_time.c:399:33: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:400:39: danger: 'teps[needfree].proto' leaks here; was allocated at [(22)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/21)
#  398|   				FD_ZERO(&readfds);
#  399|   				FD_SET(s, &readfds);
#  400|-> 				res = select(_rpc_dtablesize(), &readfds,
#  401|   				     (fd_set *)NULL, (fd_set *)NULL, &timeout);
#  402|   			} while (res < 0 && errno == EINTR);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
libtirpc-1.3.7/src/auth_time.c:400:39: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:28: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: following 'true' branch (when '__i != 16')...
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_false: following 'false' branch (when '__i == 16')...
libtirpc-1.3.7/src/auth_time.c:399:33: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:400:39: danger: 'teps[needfree].uaddr' leaks here; was allocated at [(22)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/21)
#  398|   				FD_ZERO(&readfds);
#  399|   				FD_SET(s, &readfds);
#  400|-> 				res = select(_rpc_dtablesize(), &readfds,
#  401|   				     (fd_set *)NULL, (fd_set *)NULL, &timeout);
#  402|   			} while (res < 0 && errno == EINTR);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
libtirpc-1.3.7/src/auth_time.c:406:31: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:28: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: following 'true' branch (when '__i != 16')...
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:403:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:405:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:406:31: danger: 'teps[0].family' leaks here; was allocated at [(18)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/17)
#  404|   				goto error;
#  405|   			len = sizeof(from);
#  406|-> 			res = recvfrom(s, (char *)&thetime, sizeof(thetime), 0,
#  407|   				       (struct sockaddr *)&from, &len);
#  408|   			if (res == -1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
libtirpc-1.3.7/src/auth_time.c:406:31: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch (when 'i < epl')...
libtirpc-1.3.7/src/auth_time.c:279:39: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:28: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: following 'true' branch (when '__i != 16')...
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:403:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:405:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:406:31: danger: 'teps[0].proto' leaks here; was allocated at [(18)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/17)
#  404|   				goto error;
#  405|   			len = sizeof(from);
#  406|-> 			res = recvfrom(s, (char *)&thetime, sizeof(thetime), 0,
#  407|   				       (struct sockaddr *)&from, &len);
#  408|   			if (res == -1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
libtirpc-1.3.7/src/auth_time.c:406:31: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:28: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: following 'true' branch (when '__i != 16')...
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:403:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:405:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:406:31: danger: 'teps[0].uaddr' leaks here; was allocated at [(18)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/17)
#  404|   				goto error;
#  405|   			len = sizeof(from);
#  406|-> 			res = recvfrom(s, (char *)&thetime, sizeof(thetime), 0,
#  407|   				       (struct sockaddr *)&from, &len);
#  408|   			if (res == -1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
libtirpc-1.3.7/src/auth_time.c:406:31: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:28: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: following 'true' branch (when '__i != 16')...
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:403:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:405:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:406:31: danger: 'teps[needfree].family' leaks here; was allocated at [(22)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/21)
#  404|   				goto error;
#  405|   			len = sizeof(from);
#  406|-> 			res = recvfrom(s, (char *)&thetime, sizeof(thetime), 0,
#  407|   				       (struct sockaddr *)&from, &len);
#  408|   			if (res == -1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
libtirpc-1.3.7/src/auth_time.c:406:31: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:28: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: following 'true' branch (when '__i != 16')...
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:403:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:405:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:406:31: danger: 'teps[needfree].proto' leaks here; was allocated at [(22)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/21)
#  404|   				goto error;
#  405|   			len = sizeof(from);
#  406|-> 			res = recvfrom(s, (char *)&thetime, sizeof(thetime), 0,
#  407|   				       (struct sockaddr *)&from, &len);
#  408|   			if (res == -1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
libtirpc-1.3.7/src/auth_time.c:406:31: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/auth_time.c:387:40: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:392:28: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: following 'true' branch (when '__i != 16')...
libtirpc-1.3.7/src/auth_time.c:398:33: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:403:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:405:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:406:31: danger: 'teps[needfree].uaddr' leaks here; was allocated at [(22)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/21)
#  404|   				goto error;
#  405|   			len = sizeof(from);
#  406|-> 			res = recvfrom(s, (char *)&thetime, sizeof(thetime), 0,
#  407|   				       (struct sockaddr *)&from, &len);
#  408|   			if (res == -1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
libtirpc-1.3.7/src/auth_time.c:419:31: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: following 'false' branch (when 'type != 2')...
libtirpc-1.3.7/src/auth_time.c:416:49: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:419:31: danger: 'teps[0].family' leaks here; was allocated at [(18)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/17)
#  417|   			saw_alarm = 0; /* global tracking the alarm */
#  418|   			alarm(20); /* only wait 20 seconds */
#  419|-> 			res = connect(s, (struct sockaddr *)&sin, sizeof(sin));
#  420|   			if (res == -1) {
#  421|   				msg("failed to connect to tcp endpoint.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
libtirpc-1.3.7/src/auth_time.c:419:31: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch (when 'i < epl')...
libtirpc-1.3.7/src/auth_time.c:279:39: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: following 'false' branch (when 'type != 2')...
libtirpc-1.3.7/src/auth_time.c:416:49: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:419:31: danger: 'teps[0].proto' leaks here; was allocated at [(18)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/17)
#  417|   			saw_alarm = 0; /* global tracking the alarm */
#  418|   			alarm(20); /* only wait 20 seconds */
#  419|-> 			res = connect(s, (struct sockaddr *)&sin, sizeof(sin));
#  420|   			if (res == -1) {
#  421|   				msg("failed to connect to tcp endpoint.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
libtirpc-1.3.7/src/auth_time.c:419:31: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: following 'false' branch (when 'type != 2')...
libtirpc-1.3.7/src/auth_time.c:416:49: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:419:31: danger: 'teps[0].uaddr' leaks here; was allocated at [(18)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/17)
#  417|   			saw_alarm = 0; /* global tracking the alarm */
#  418|   			alarm(20); /* only wait 20 seconds */
#  419|-> 			res = connect(s, (struct sockaddr *)&sin, sizeof(sin));
#  420|   			if (res == -1) {
#  421|   				msg("failed to connect to tcp endpoint.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
libtirpc-1.3.7/src/auth_time.c:419:31: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: following 'false' branch (when 'type != 2')...
libtirpc-1.3.7/src/auth_time.c:416:49: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:419:31: danger: 'teps[needfree].family' leaks here; was allocated at [(22)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/21)
#  417|   			saw_alarm = 0; /* global tracking the alarm */
#  418|   			alarm(20); /* only wait 20 seconds */
#  419|-> 			res = connect(s, (struct sockaddr *)&sin, sizeof(sin));
#  420|   			if (res == -1) {
#  421|   				msg("failed to connect to tcp endpoint.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
libtirpc-1.3.7/src/auth_time.c:419:31: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: following 'false' branch (when 'type != 2')...
libtirpc-1.3.7/src/auth_time.c:416:49: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:419:31: danger: 'teps[needfree].proto' leaks here; was allocated at [(22)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/21)
#  417|   			saw_alarm = 0; /* global tracking the alarm */
#  418|   			alarm(20); /* only wait 20 seconds */
#  419|-> 			res = connect(s, (struct sockaddr *)&sin, sizeof(sin));
#  420|   			if (res == -1) {
#  421|   				msg("failed to connect to tcp endpoint.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
libtirpc-1.3.7/src/auth_time.c:419:31: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: following 'false' branch (when 'type != 2')...
libtirpc-1.3.7/src/auth_time.c:416:49: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:419:31: danger: 'teps[needfree].uaddr' leaks here; was allocated at [(22)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/21)
#  417|   			saw_alarm = 0; /* global tracking the alarm */
#  418|   			alarm(20); /* only wait 20 seconds */
#  419|-> 			res = connect(s, (struct sockaddr *)&sin, sizeof(sin));
#  420|   			if (res == -1) {
#  421|   				msg("failed to connect to tcp endpoint.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
libtirpc-1.3.7/src/auth_time.c:440:23: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: following 'false' branch (when 'type != 2')...
libtirpc-1.3.7/src/auth_time.c:416:49: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:420:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:424:29: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:424:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:428:31: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:429:28: branch_false: following 'false' branch (when 'res == 8')...
libtirpc-1.3.7/src/auth_time.c:439:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:440:23: danger: 'teps[0].family' leaks here; was allocated at [(18)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/17)
#  438|   		}
#  439|   		save = errno;
#  440|-> 		(void)close(s);
#  441|   		errno = save;
#  442|   		s = RPC_ANYSOCK;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
libtirpc-1.3.7/src/auth_time.c:440:23: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch (when 'i < epl')...
libtirpc-1.3.7/src/auth_time.c:279:39: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: following 'false' branch (when 'type != 2')...
libtirpc-1.3.7/src/auth_time.c:416:49: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:420:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:424:29: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:424:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:428:31: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:429:28: branch_false: following 'false' branch (when 'res == 8')...
libtirpc-1.3.7/src/auth_time.c:439:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:440:23: danger: 'teps[0].proto' leaks here; was allocated at [(18)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/17)
#  438|   		}
#  439|   		save = errno;
#  440|-> 		(void)close(s);
#  441|   		errno = save;
#  442|   		s = RPC_ANYSOCK;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
libtirpc-1.3.7/src/auth_time.c:440:23: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: following 'false' branch (when 'type != 2')...
libtirpc-1.3.7/src/auth_time.c:416:49: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:420:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:424:29: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:424:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:428:31: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:429:28: branch_false: following 'false' branch (when 'res == 8')...
libtirpc-1.3.7/src/auth_time.c:439:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:440:23: danger: 'teps[0].uaddr' leaks here; was allocated at [(18)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/17)
#  438|   		}
#  439|   		save = errno;
#  440|-> 		(void)close(s);
#  441|   		errno = save;
#  442|   		s = RPC_ANYSOCK;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
libtirpc-1.3.7/src/auth_time.c:440:23: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: following 'false' branch (when 'type != 2')...
libtirpc-1.3.7/src/auth_time.c:416:49: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:420:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:424:29: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:424:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:428:31: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:429:28: branch_false: following 'false' branch (when 'res == 8')...
libtirpc-1.3.7/src/auth_time.c:439:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:440:23: danger: 'teps[needfree].family' leaks here; was allocated at [(22)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/21)
#  438|   		}
#  439|   		save = errno;
#  440|-> 		(void)close(s);
#  441|   		errno = save;
#  442|   		s = RPC_ANYSOCK;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
libtirpc-1.3.7/src/auth_time.c:440:23: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: following 'false' branch (when 'type != 2')...
libtirpc-1.3.7/src/auth_time.c:416:49: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:420:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:424:29: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:424:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:428:31: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:429:28: branch_false: following 'false' branch (when 'res == 8')...
libtirpc-1.3.7/src/auth_time.c:439:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:440:23: danger: 'teps[needfree].proto' leaks here; was allocated at [(22)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/21)
#  438|   		}
#  439|   		save = errno;
#  440|-> 		(void)close(s);
#  441|   		errno = save;
#  442|   		s = RPC_ANYSOCK;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
libtirpc-1.3.7/src/auth_time.c:440:23: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:21: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:371:21: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:371:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:376:21: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:377:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:386:20: branch_false: following 'false' branch (when 'type != 2')...
libtirpc-1.3.7/src/auth_time.c:416:49: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:420:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:424:29: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:424:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:428:31: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:429:28: branch_false: following 'false' branch (when 'res == 8')...
libtirpc-1.3.7/src/auth_time.c:439:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:440:23: danger: 'teps[needfree].uaddr' leaks here; was allocated at [(22)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/21)
#  438|   		}
#  439|   		save = errno;
#  440|-> 		(void)close(s);
#  441|   		errno = save;
#  442|   		s = RPC_ANYSOCK;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
libtirpc-1.3.7/src/auth_time.c:459:23: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:373:25: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:458:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:459:23: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:459:23: danger: 'teps[0].family' leaks here; was allocated at [(18)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/17)
#  457|   
#  458|   	if (s != RPC_ANYSOCK)
#  459|-> 		(void)close(s);
#  460|   
#  461|   	if (clnt != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
libtirpc-1.3.7/src/auth_time.c:459:23: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch (when 'i < epl')...
libtirpc-1.3.7/src/auth_time.c:279:39: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:373:25: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:458:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:459:23: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:459:23: danger: 'teps[0].proto' leaks here; was allocated at [(18)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/17)
#  457|   
#  458|   	if (s != RPC_ANYSOCK)
#  459|-> 		(void)close(s);
#  460|   
#  461|   	if (clnt != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
libtirpc-1.3.7/src/auth_time.c:459:23: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:373:25: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:458:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:459:23: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:459:23: danger: 'teps[0].uaddr' leaks here; was allocated at [(18)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/17)
#  457|   
#  458|   	if (s != RPC_ANYSOCK)
#  459|-> 		(void)close(s);
#  460|   
#  461|   	if (clnt != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
libtirpc-1.3.7/src/auth_time.c:459:23: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:373:25: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:458:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:459:23: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:459:23: danger: 'teps[needfree].family' leaks here; was allocated at [(22)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/21)
#  457|   
#  458|   	if (s != RPC_ANYSOCK)
#  459|-> 		(void)close(s);
#  460|   
#  461|   	if (clnt != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
libtirpc-1.3.7/src/auth_time.c:459:23: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:373:25: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:458:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:459:23: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:459:23: danger: 'teps[needfree].proto' leaks here; was allocated at [(22)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/21)
#  457|   
#  458|   	if (s != RPC_ANYSOCK)
#  459|-> 		(void)close(s);
#  460|   
#  461|   	if (clnt != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
libtirpc-1.3.7/src/auth_time.c:459:23: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:356:25: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:371:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:373:25: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:458:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:459:23: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:459:23: danger: 'teps[needfree].uaddr' leaks here; was allocated at [(22)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/21)
#  457|   
#  458|   	if (s != RPC_ANYSOCK)
#  459|-> 		(void)close(s);
#  460|   
#  461|   	if (clnt != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
libtirpc-1.3.7/src/auth_time.c:462:17: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:451:9: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:458:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:461:12: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:461:12: branch_true: following 'true' branch (when 'clnt' is non-NULL)...
libtirpc-1.3.7/src/auth_time.c:462:17: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:462:17: danger: 'teps[0].family' leaks here; was allocated at [(18)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/17)
#  460|   
#  461|   	if (clnt != NULL)
#  462|-> 		clnt_destroy(clnt);
#  463|   
#  464|   	alarm(0);	/* reset that alarm if its outstanding */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
libtirpc-1.3.7/src/auth_time.c:462:17: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch (when 'i < epl')...
libtirpc-1.3.7/src/auth_time.c:279:39: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:451:9: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:458:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:461:12: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:461:12: branch_true: following 'true' branch (when 'clnt' is non-NULL)...
libtirpc-1.3.7/src/auth_time.c:462:17: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:462:17: danger: 'teps[0].proto' leaks here; was allocated at [(18)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/17)
#  460|   
#  461|   	if (clnt != NULL)
#  462|-> 		clnt_destroy(clnt);
#  463|   
#  464|   	alarm(0);	/* reset that alarm if its outstanding */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
libtirpc-1.3.7/src/auth_time.c:462:17: warning[-Wanalyzer-malloc-leak]: leak of 'teps[0].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:451:9: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:458:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:461:12: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:461:12: branch_true: following 'true' branch (when 'clnt' is non-NULL)...
libtirpc-1.3.7/src/auth_time.c:462:17: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:462:17: danger: 'teps[0].uaddr' leaks here; was allocated at [(18)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/17)
#  460|   
#  461|   	if (clnt != NULL)
#  462|-> 		clnt_destroy(clnt);
#  463|   
#  464|   	alarm(0);	/* reset that alarm if its outstanding */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
libtirpc-1.3.7/src/auth_time.c:462:17: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].family'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:451:9: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:458:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:461:12: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:461:12: branch_true: following 'true' branch (when 'clnt' is non-NULL)...
libtirpc-1.3.7/src/auth_time.c:462:17: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:462:17: danger: 'teps[needfree].family' leaks here; was allocated at [(22)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/21)
#  460|   
#  461|   	if (clnt != NULL)
#  462|-> 		clnt_destroy(clnt);
#  463|   
#  464|   	alarm(0);	/* reset that alarm if its outstanding */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
libtirpc-1.3.7/src/auth_time.c:462:17: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].proto'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:451:9: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:458:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:461:12: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:461:12: branch_true: following 'true' branch (when 'clnt' is non-NULL)...
libtirpc-1.3.7/src/auth_time.c:462:17: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:462:17: danger: 'teps[needfree].proto' leaks here; was allocated at [(22)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/21)
#  460|   
#  461|   	if (clnt != NULL)
#  462|-> 		clnt_destroy(clnt);
#  463|   
#  464|   	alarm(0);	/* reset that alarm if its outstanding */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
libtirpc-1.3.7/src/auth_time.c:462:17: warning[-Wanalyzer-malloc-leak]: leak of 'teps[needfree].uaddr'
libtirpc-1.3.7/src/auth_time.c:225:1: enter_function: entry to '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:260:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:261:21: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:261:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:265:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:265:20: branch_true: following 'true' branch (when 'srv' is NULL)...
libtirpc-1.3.7/src/auth_time.c:266:31: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:266:31: call_function: calling 'get_server' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:266:31: return_function: returning to '__rpc_get_time_offset' from 'get_server'
libtirpc-1.3.7/src/auth_time.c:267:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:274:17: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:279:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:279:25: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:287:20: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:317:13: call_function: calling 'uaddr_to_sockaddr' from '__rpc_get_time_offset'
libtirpc-1.3.7/src/auth_time.c:317:13: return_function: returning to '__rpc_get_time_offset' from 'uaddr_to_sockaddr'
libtirpc-1.3.7/src/auth_time.c:317:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:331:16: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:332:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:339:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:349:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_time.c:451:9: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:458:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_time.c:461:12: branch_false: ...to here
libtirpc-1.3.7/src/auth_time.c:461:12: branch_true: following 'true' branch (when 'clnt' is non-NULL)...
libtirpc-1.3.7/src/auth_time.c:462:17: branch_true: ...to here
libtirpc-1.3.7/src/auth_time.c:462:17: danger: 'teps[needfree].uaddr' leaks here; was allocated at [(22)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/21)
#  460|   
#  461|   	if (clnt != NULL)
#  462|-> 		clnt_destroy(clnt);
#  463|   
#  464|   	alarm(0);	/* reset that alarm if its outstanding */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
libtirpc-1.3.7/src/auth_unix.c:116:17: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_unix.c:105:16: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_unix.c:107:12: branch_false: following 'false' branch (when 'auth' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:113:14: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:115:12: branch_true: following 'true' branch (when 'au' is NULL)...
libtirpc-1.3.7/src/auth_unix.c:116:17: branch_true: ...to here
libtirpc-1.3.7/src/auth_unix.c:116:17: danger: 'auth' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  114|   #ifndef _KERNEL
#  115|   	if (au == NULL) {
#  116|-> 		rpc_createerr.cf_stat = RPC_SYSTEMERROR;
#  117|   		rpc_createerr.cf_error.re_errno = ENOMEM;
#  118|   		goto cleanup_authunix_create;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
libtirpc-1.3.7/src/auth_unix.c:117:17: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_unix.c:105:16: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_unix.c:107:12: branch_false: following 'false' branch (when 'auth' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:113:14: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:115:12: branch_true: following 'true' branch (when 'au' is NULL)...
libtirpc-1.3.7/src/auth_unix.c:116:17: branch_true: ...to here
libtirpc-1.3.7/src/auth_unix.c:117:17: danger: 'auth' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  115|   	if (au == NULL) {
#  116|   		rpc_createerr.cf_stat = RPC_SYSTEMERROR;
#  117|-> 		rpc_createerr.cf_error.re_errno = ENOMEM;
#  118|   		goto cleanup_authunix_create;
#  119|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
libtirpc-1.3.7/src/auth_unix.c:141:9: warning[-Wanalyzer-malloc-leak]: leak of 'au'
libtirpc-1.3.7/src/auth_unix.c:107:12: branch_false: following 'false' branch (when 'auth' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:113:14: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:113:14: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_unix.c:115:12: branch_false: following 'false' branch (when 'au' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:121:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:141:9: danger: 'au' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  139|   	 * Serialize the parameters into origcred
#  140|   	 */
#  141|-> 	xdrmem_create(&xdrs, mymem, MAX_AUTH_BYTES, XDR_ENCODE);
#  142|   	if (!xdr_authunix_parms(&xdrs, &aup)) {
#  143|   		rpc_createerr.cf_stat = RPC_CANTENCODEARGS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
libtirpc-1.3.7/src/auth_unix.c:141:9: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_unix.c:105:16: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_unix.c:107:12: branch_false: following 'false' branch (when 'auth' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:113:14: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:115:12: branch_false: following 'false' branch (when 'au' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:121:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:141:9: danger: 'auth' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  139|   	 * Serialize the parameters into origcred
#  140|   	 */
#  141|-> 	xdrmem_create(&xdrs, mymem, MAX_AUTH_BYTES, XDR_ENCODE);
#  142|   	if (!xdr_authunix_parms(&xdrs, &aup)) {
#  143|   		rpc_createerr.cf_stat = RPC_CANTENCODEARGS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
libtirpc-1.3.7/src/auth_unix.c:142:14: warning[-Wanalyzer-malloc-leak]: leak of 'au'
libtirpc-1.3.7/src/auth_unix.c:107:12: branch_false: following 'false' branch (when 'auth' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:113:14: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:113:14: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_unix.c:115:12: branch_false: following 'false' branch (when 'au' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:121:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:142:14: danger: 'au' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  140|   	 */
#  141|   	xdrmem_create(&xdrs, mymem, MAX_AUTH_BYTES, XDR_ENCODE);
#  142|-> 	if (!xdr_authunix_parms(&xdrs, &aup)) {
#  143|   		rpc_createerr.cf_stat = RPC_CANTENCODEARGS;
#  144|   		goto cleanup_authunix_create;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
libtirpc-1.3.7/src/auth_unix.c:142:14: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_unix.c:105:16: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_unix.c:107:12: branch_false: following 'false' branch (when 'auth' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:113:14: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:115:12: branch_false: following 'false' branch (when 'au' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:121:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:142:14: danger: 'auth' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  140|   	 */
#  141|   	xdrmem_create(&xdrs, mymem, MAX_AUTH_BYTES, XDR_ENCODE);
#  142|-> 	if (!xdr_authunix_parms(&xdrs, &aup)) {
#  143|   		rpc_createerr.cf_stat = RPC_CANTENCODEARGS;
#  144|   		goto cleanup_authunix_create;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
libtirpc-1.3.7/src/auth_unix.c:143:17: warning[-Wanalyzer-malloc-leak]: leak of 'au'
libtirpc-1.3.7/src/auth_unix.c:107:12: branch_false: following 'false' branch (when 'auth' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:113:14: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:113:14: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_unix.c:115:12: branch_false: following 'false' branch (when 'au' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:121:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:142:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_unix.c:143:17: branch_true: ...to here
libtirpc-1.3.7/src/auth_unix.c:143:17: danger: 'au' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  141|   	xdrmem_create(&xdrs, mymem, MAX_AUTH_BYTES, XDR_ENCODE);
#  142|   	if (!xdr_authunix_parms(&xdrs, &aup)) {
#  143|-> 		rpc_createerr.cf_stat = RPC_CANTENCODEARGS;
#  144|   		goto cleanup_authunix_create;
#  145|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
libtirpc-1.3.7/src/auth_unix.c:143:17: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_unix.c:105:16: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_unix.c:107:12: branch_false: following 'false' branch (when 'auth' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:113:14: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:115:12: branch_false: following 'false' branch (when 'au' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:121:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:142:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_unix.c:143:17: branch_true: ...to here
libtirpc-1.3.7/src/auth_unix.c:143:17: danger: 'auth' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  141|   	xdrmem_create(&xdrs, mymem, MAX_AUTH_BYTES, XDR_ENCODE);
#  142|   	if (!xdr_authunix_parms(&xdrs, &aup)) {
#  143|-> 		rpc_createerr.cf_stat = RPC_CANTENCODEARGS;
#  144|   		goto cleanup_authunix_create;
#  145|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
libtirpc-1.3.7/src/auth_unix.c:146:43: warning[-Wanalyzer-malloc-leak]: leak of 'au'
libtirpc-1.3.7/src/auth_unix.c:107:12: branch_false: following 'false' branch (when 'auth' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:113:14: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:113:14: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_unix.c:115:12: branch_false: following 'false' branch (when 'au' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:121:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:142:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_unix.c:146:43: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:146:43: danger: 'au' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  144|   		goto cleanup_authunix_create;
#  145|   	}
#  146|-> 	au->au_origcred.oa_length = len = XDR_GETPOS(&xdrs);
#  147|   	au->au_origcred.oa_flavor = AUTH_UNIX;
#  148|   #ifdef _KERNEL

Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
libtirpc-1.3.7/src/auth_unix.c:146:43: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_unix.c:105:16: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_unix.c:107:12: branch_false: following 'false' branch (when 'auth' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:113:14: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:115:12: branch_false: following 'false' branch (when 'au' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:121:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:142:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_unix.c:146:43: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:146:43: danger: 'auth' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  144|   		goto cleanup_authunix_create;
#  145|   	}
#  146|-> 	au->au_origcred.oa_length = len = XDR_GETPOS(&xdrs);
#  147|   	au->au_origcred.oa_flavor = AUTH_UNIX;
#  148|   #ifdef _KERNEL

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
libtirpc-1.3.7/src/auth_unix.c:152:17: warning[-Wanalyzer-malloc-leak]: leak of 'au'
libtirpc-1.3.7/src/auth_unix.c:107:12: branch_false: following 'false' branch (when 'auth' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:113:14: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:113:14: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_unix.c:115:12: branch_false: following 'false' branch (when 'au' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:121:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:142:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_unix.c:146:43: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:151:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_unix.c:152:17: branch_true: ...to here
libtirpc-1.3.7/src/auth_unix.c:152:17: danger: 'au' leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
#  150|   #else
#  151|   	if ((au->au_origcred.oa_base = mem_alloc((u_int) len)) == NULL) {
#  152|-> 		rpc_createerr.cf_stat = RPC_SYSTEMERROR;
#  153|   		rpc_createerr.cf_error.re_errno = ENOMEM;
#  154|   		goto cleanup_authunix_create;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
libtirpc-1.3.7/src/auth_unix.c:152:17: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_unix.c:105:16: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_unix.c:107:12: branch_false: following 'false' branch (when 'auth' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:113:14: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:115:12: branch_false: following 'false' branch (when 'au' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:121:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:142:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_unix.c:146:43: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:151:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_unix.c:152:17: branch_true: ...to here
libtirpc-1.3.7/src/auth_unix.c:152:17: danger: 'auth' leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  150|   #else
#  151|   	if ((au->au_origcred.oa_base = mem_alloc((u_int) len)) == NULL) {
#  152|-> 		rpc_createerr.cf_stat = RPC_SYSTEMERROR;
#  153|   		rpc_createerr.cf_error.re_errno = ENOMEM;
#  154|   		goto cleanup_authunix_create;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
libtirpc-1.3.7/src/auth_unix.c:153:17: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_unix.c:105:16: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_unix.c:107:12: branch_false: following 'false' branch (when 'auth' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:113:14: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:115:12: branch_false: following 'false' branch (when 'au' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:121:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:142:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_unix.c:146:43: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:151:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/auth_unix.c:152:17: branch_true: ...to here
libtirpc-1.3.7/src/auth_unix.c:153:17: danger: 'auth' leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  151|   	if ((au->au_origcred.oa_base = mem_alloc((u_int) len)) == NULL) {
#  152|   		rpc_createerr.cf_stat = RPC_SYSTEMERROR;
#  153|-> 		rpc_createerr.cf_error.re_errno = ENOMEM;
#  154|   		goto cleanup_authunix_create;
#  155|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
libtirpc-1.3.7/src/auth_unix.c:382:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libtirpc-1.3.7/src/auth_unix.c:85:1: enter_function: entry to 'authunix_create'
libtirpc-1.3.7/src/auth_unix.c:107:12: branch_false: following 'false' branch (when 'auth' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:113:14: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:115:12: branch_false: following 'false' branch (when 'au' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:121:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:142:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_unix.c:146:43: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:151:40: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_unix.c:151:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_unix.c:157:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:163:9: call_function: calling 'marshal_new_auth' from 'authunix_create'
#  380|   
#  381|   	au = AUTH_PRIVATE(auth);
#  382|-> 	xdrmem_create(xdrs, au->au_marshed, MAX_AUTH_BYTES, XDR_ENCODE);
#  383|   	if ((! xdr_opaque_auth(xdrs, &(auth->ah_cred))) ||
#  384|   	    (! xdr_opaque_auth(xdrs, &(auth->ah_verf))))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
libtirpc-1.3.7/src/auth_unix.c:382:9: warning[-Wanalyzer-malloc-leak]: leak of 'au'
libtirpc-1.3.7/src/auth_unix.c:85:1: enter_function: entry to 'authunix_create'
libtirpc-1.3.7/src/auth_unix.c:107:12: branch_false: following 'false' branch (when 'auth' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:113:14: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:113:14: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_unix.c:115:12: branch_false: following 'false' branch (when 'au' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:121:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:142:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_unix.c:146:43: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:151:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_unix.c:157:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:163:9: call_function: calling 'marshal_new_auth' from 'authunix_create'
#  380|   
#  381|   	au = AUTH_PRIVATE(auth);
#  382|-> 	xdrmem_create(xdrs, au->au_marshed, MAX_AUTH_BYTES, XDR_ENCODE);
#  383|   	if ((! xdr_opaque_auth(xdrs, &(auth->ah_cred))) ||
#  384|   	    (! xdr_opaque_auth(xdrs, &(auth->ah_verf))))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
libtirpc-1.3.7/src/auth_unix.c:382:9: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_unix.c:85:1: enter_function: entry to 'authunix_create'
libtirpc-1.3.7/src/auth_unix.c:105:16: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_unix.c:107:12: branch_false: following 'false' branch (when 'auth' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:113:14: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:115:12: branch_false: following 'false' branch (when 'au' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:121:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:142:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_unix.c:146:43: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:151:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_unix.c:157:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:163:9: call_function: calling 'marshal_new_auth' from 'authunix_create'
#  380|   
#  381|   	au = AUTH_PRIVATE(auth);
#  382|-> 	xdrmem_create(xdrs, au->au_marshed, MAX_AUTH_BYTES, XDR_ENCODE);
#  383|   	if ((! xdr_opaque_auth(xdrs, &(auth->ah_cred))) ||
#  384|   	    (! xdr_opaque_auth(xdrs, &(auth->ah_verf))))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
libtirpc-1.3.7/src/auth_unix.c:383:16: warning[-Wanalyzer-malloc-leak]: leak of 'auth'
libtirpc-1.3.7/src/auth_unix.c:85:1: enter_function: entry to 'authunix_create'
libtirpc-1.3.7/src/auth_unix.c:105:16: acquire_memory: allocated here
libtirpc-1.3.7/src/auth_unix.c:107:12: branch_false: following 'false' branch (when 'auth' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:113:14: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:115:12: branch_false: following 'false' branch (when 'au' is non-NULL)...
libtirpc-1.3.7/src/auth_unix.c:121:24: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:142:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_unix.c:146:43: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:151:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/auth_unix.c:157:9: branch_false: ...to here
libtirpc-1.3.7/src/auth_unix.c:163:9: call_function: calling 'marshal_new_auth' from 'authunix_create'
#  381|   	au = AUTH_PRIVATE(auth);
#  382|   	xdrmem_create(xdrs, au->au_marshed, MAX_AUTH_BYTES, XDR_ENCODE);
#  383|-> 	if ((! xdr_opaque_auth(xdrs, &(auth->ah_cred))) ||
#  384|   	    (! xdr_opaque_auth(xdrs, &(auth->ah_verf))))
#  385|   		warnx("auth_none.c - Fatal marshalling problem");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
libtirpc-1.3.7/src/binddynport.c:111:17: warning[-Wanalyzer-malloc-leak]: leak of 'reserved_ports'
libtirpc-1.3.7/src/binddynport.c:152:5: enter_function: entry to '__binddynport'
libtirpc-1.3.7/src/binddynport.c:166:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/binddynport.c:171:9: branch_false: ...to here
libtirpc-1.3.7/src/binddynport.c:176:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/binddynport.c:179:17: branch_false: ...to here
libtirpc-1.3.7/src/binddynport.c:203:26: acquire_memory: allocated here
libtirpc-1.3.7/src/binddynport.c:204:12: branch_false: following 'false' branch (when 'reserved_ports' is non-NULL)...
libtirpc-1.3.7/src/binddynport.c:207:9: branch_false: ...to here
libtirpc-1.3.7/src/binddynport.c:208:13: call_function: calling 'parse_reserved_ports' from '__binddynport'
#  109|   	FILE * file_ptr = fopen("/proc/sys/net/ipv4/ip_local_reserved_ports","r");
#  110|   	if (file_ptr == NULL) {
#  111|-> 		(void) syslog(LOG_ERR,
#  112|   			"Unable to open open /proc/sys/net/ipv4/ip_local_reserved_ports.");
#  113|   		return -1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
libtirpc-1.3.7/src/binddynport.c:132:9: warning[-Wanalyzer-malloc-leak]: leak of 'reserved_ports'
libtirpc-1.3.7/src/binddynport.c:152:5: enter_function: entry to '__binddynport'
libtirpc-1.3.7/src/binddynport.c:166:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/binddynport.c:171:9: branch_false: ...to here
libtirpc-1.3.7/src/binddynport.c:176:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/binddynport.c:179:17: branch_false: ...to here
libtirpc-1.3.7/src/binddynport.c:203:26: acquire_memory: allocated here
libtirpc-1.3.7/src/binddynport.c:204:12: branch_false: following 'false' branch (when 'reserved_ports' is non-NULL)...
libtirpc-1.3.7/src/binddynport.c:207:9: branch_false: ...to here
libtirpc-1.3.7/src/binddynport.c:208:13: call_function: calling 'parse_reserved_ports' from '__binddynport'
#  130|   	return 0;
#  131|   err:
#  132|-> 	(void) syslog(LOG_ERR,
#  133|   		"An error occurred while parsing ip_local_reserved_ports.");
#  134|   	fclose(file_ptr);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def97]
libtirpc-1.3.7/src/clnt_bcast.c:360:42: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
libtirpc-1.3.7/src/clnt_bcast.c:260:1: enter_function: entry to 'rpc_broadcast_exp'
libtirpc-1.3.7/src/clnt_bcast.c:319:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_bcast.c:329:12: branch_false: ...to here
libtirpc-1.3.7/src/clnt_bcast.c:331:12: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/clnt_bcast.c:335:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_bcast.c:339:21: branch_true: ...to here
libtirpc-1.3.7/src/clnt_bcast.c:339:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_bcast.c:341:20: branch_false: ...to here
libtirpc-1.3.7/src/clnt_bcast.c:341:20: branch_false: following 'false' branch (when 'fdlistno <= 19')...
libtirpc-1.3.7/src/clnt_bcast.c:343:22: branch_false: ...to here
libtirpc-1.3.7/src/clnt_bcast.c:343:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_bcast.c:346:17: branch_false: ...to here
libtirpc-1.3.7/src/clnt_bcast.c:347:21: call_function: calling '__rpc_getbroadifs' from 'rpc_broadcast_exp'
libtirpc-1.3.7/src/clnt_bcast.c:347:21: return_function: returning to 'rpc_broadcast_exp' from '__rpc_getbroadifs'
libtirpc-1.3.7/src/clnt_bcast.c:347:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_bcast.c:351:22: branch_false: ...to here
libtirpc-1.3.7/src/clnt_bcast.c:351:22: acquire_resource: socket created here
libtirpc-1.3.7/src/clnt_bcast.c:352:20: branch_false: following 'false' branch (when 'fd >= 0')...
libtirpc-1.3.7/src/clnt_bcast.c:356:39: branch_false: ...to here
libtirpc-1.3.7/src/clnt_bcast.c:360:42: danger: 'fd' leaks here
#  358|   		fdlist[fdlistno].fd = fd;
#  359|   		fdlist[fdlistno].nconf = nconf;
#  360|-> 		fdlist[fdlistno].asize = __rpc_get_a_size(si.si_af);
#  361|   		pfd[fdlistno].events = POLLIN | POLLPRI |
#  362|   			POLLRDNORM | POLLRDBAND;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
libtirpc-1.3.7/src/clnt_dg.c:237:9: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_dg.c:181:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:186:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:189:12: branch_false: following 'false' branch (when 'svcaddr' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:194:14: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:194:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:202:18: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:204:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:210:19: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:210:19: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_dg.c:210:12: branch_false: following 'false' branch (when 'cl' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:215:19: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:218:12: branch_false: following 'false' branch (when 'cu' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:220:60: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:237:9: danger: 'cl' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  235|   	call_msg.rm_call.cb_prog = program;
#  236|   	call_msg.rm_call.cb_vers = version;
#  237|-> 	xdrmem_create(&(cu->cu_outxdrs), cu->cu_outbuf, sendsz, XDR_ENCODE);
#  238|   	if (! xdr_callhdr(&(cu->cu_outxdrs), &call_msg)) {
#  239|   		rpc_createerr.cf_stat = RPC_CANTENCODEARGS;  /* XXX */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
libtirpc-1.3.7/src/clnt_dg.c:237:9: warning[-Wanalyzer-malloc-leak]: leak of 'cu'
libtirpc-1.3.7/src/clnt_dg.c:181:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:186:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:189:12: branch_false: following 'false' branch (when 'svcaddr' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:194:14: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:194:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:202:18: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:204:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:210:19: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:210:12: branch_false: following 'false' branch (when 'cl' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:215:19: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:217:14: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_dg.c:218:12: branch_false: following 'false' branch (when 'cu' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:220:60: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:237:9: danger: 'cu' leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
#  235|   	call_msg.rm_call.cb_prog = program;
#  236|   	call_msg.rm_call.cb_vers = version;
#  237|-> 	xdrmem_create(&(cu->cu_outxdrs), cu->cu_outbuf, sendsz, XDR_ENCODE);
#  238|   	if (! xdr_callhdr(&(cu->cu_outxdrs), &call_msg)) {
#  239|   		rpc_createerr.cf_stat = RPC_CANTENCODEARGS;  /* XXX */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
libtirpc-1.3.7/src/clnt_dg.c:238:15: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_dg.c:181:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:186:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:189:12: branch_false: following 'false' branch (when 'svcaddr' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:194:14: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:194:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:202:18: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:204:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:210:19: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:210:19: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_dg.c:210:12: branch_false: following 'false' branch (when 'cl' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:215:19: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:218:12: branch_false: following 'false' branch (when 'cu' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:220:60: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:238:15: danger: 'cl' leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#  236|   	call_msg.rm_call.cb_vers = version;
#  237|   	xdrmem_create(&(cu->cu_outxdrs), cu->cu_outbuf, sendsz, XDR_ENCODE);
#  238|-> 	if (! xdr_callhdr(&(cu->cu_outxdrs), &call_msg)) {
#  239|   		rpc_createerr.cf_stat = RPC_CANTENCODEARGS;  /* XXX */
#  240|   		rpc_createerr.cf_error.re_errno = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
libtirpc-1.3.7/src/clnt_dg.c:239:17: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_dg.c:181:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:186:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:189:12: branch_false: following 'false' branch (when 'svcaddr' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:194:14: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:194:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:202:18: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:204:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:210:19: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:210:19: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_dg.c:210:12: branch_false: following 'false' branch (when 'cl' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:215:19: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:218:12: branch_false: following 'false' branch (when 'cu' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:220:60: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:238:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_dg.c:239:17: branch_true: ...to here
libtirpc-1.3.7/src/clnt_dg.c:239:17: danger: 'cl' leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  237|   	xdrmem_create(&(cu->cu_outxdrs), cu->cu_outbuf, sendsz, XDR_ENCODE);
#  238|   	if (! xdr_callhdr(&(cu->cu_outxdrs), &call_msg)) {
#  239|-> 		rpc_createerr.cf_stat = RPC_CANTENCODEARGS;  /* XXX */
#  240|   		rpc_createerr.cf_error.re_errno = 0;
#  241|   		goto err2;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
libtirpc-1.3.7/src/clnt_dg.c:240:17: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_dg.c:181:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:186:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:189:12: branch_false: following 'false' branch (when 'svcaddr' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:194:14: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:194:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:202:18: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:204:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:210:19: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:210:19: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_dg.c:210:12: branch_false: following 'false' branch (when 'cl' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:215:19: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:218:12: branch_false: following 'false' branch (when 'cu' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:220:60: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:238:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_dg.c:239:17: branch_true: ...to here
libtirpc-1.3.7/src/clnt_dg.c:240:17: danger: 'cl' leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
#  238|   	if (! xdr_callhdr(&(cu->cu_outxdrs), &call_msg)) {
#  239|   		rpc_createerr.cf_stat = RPC_CANTENCODEARGS;  /* XXX */
#  240|-> 		rpc_createerr.cf_error.re_errno = 0;
#  241|   		goto err2;
#  242|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
libtirpc-1.3.7/src/clnt_dg.c:243:25: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_dg.c:181:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:186:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:189:12: branch_false: following 'false' branch (when 'svcaddr' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:194:14: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:194:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:202:18: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:204:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:210:19: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:210:19: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_dg.c:210:12: branch_false: following 'false' branch (when 'cl' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:215:19: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:218:12: branch_false: following 'false' branch (when 'cu' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:220:60: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:238:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:243:25: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:243:25: danger: 'cl' leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
#  241|   		goto err2;
#  242|   	}
#  243|-> 	cu->cu_xdrpos = XDR_GETPOS(&(cu->cu_outxdrs));
#  244|   
#  245|   	/* XXX fvdl - do we still want this? */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
libtirpc-1.3.7/src/clnt_dg.c:266:23: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_dg.c:181:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:186:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:189:12: branch_false: following 'false' branch (when 'svcaddr' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:194:14: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:194:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:202:18: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:204:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:210:19: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:210:19: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_dg.c:210:12: branch_false: following 'false' branch (when 'cl' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:215:19: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:218:12: branch_false: following 'false' branch (when 'cu' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:220:60: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:238:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_dg.c:243:25: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:266:23: danger: 'cl' leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
#  264|   	cl->cl_ops = clnt_dg_ops();
#  265|   	cl->cl_private = (caddr_t)(void *)cu;
#  266|-> 	cl->cl_auth = authnone_create();
#  267|   	cl->cl_tp = NULL;
#  268|   	cl->cl_netid = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
libtirpc-1.3.7/src/clnt_dg.c:449:17: warning[-Wanalyzer-malloc-leak]: leak of 'cbuf'
libtirpc-1.3.7/src/clnt_dg.c:337:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_dg.c:346:13: branch_true: ...to here
libtirpc-1.3.7/src/clnt_dg.c:353:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_dg.c:424:10: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_dg.c:432:33: branch_true: ...to here
libtirpc-1.3.7/src/clnt_dg.c:432:33: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_dg.c:435:14: branch_false: following 'false' branch (when 'cbuf' is non-NULL)...
libtirpc-1.3.7/src/clnt_dg.c:440:26: branch_false: ...to here
libtirpc-1.3.7/src/clnt_dg.c:449:17: danger: 'cbuf' leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#  447|   	  msg.msg_control = cbuf;
#  448|   	  msg.msg_controllen = 256;
#  449|-> 	  ret = recvmsg (cu->cu_fd, &msg, MSG_ERRQUEUE);
#  450|   	  if (ret >= 0
#  451|   	      && memcmp (cbuf + 256, cu->cu_outbuf, ret) == 0

Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
libtirpc-1.3.7/src/clnt_simple.c:119:32: warning[-Wanalyzer-malloc-leak]: leak of 'rcp'
libtirpc-1.3.7/src/clnt_simple.c:114:12: branch_true: following 'true' branch (when 'rcp' is NULL)...
libtirpc-1.3.7/src/clnt_simple.c:115:23: branch_true: ...to here
libtirpc-1.3.7/src/clnt_simple.c:115:23: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_simple.c:116:20: branch_false: following 'false' branch (when 'rcp' is non-NULL)...
libtirpc-1.3.7/src/clnt_simple.c:121:17: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:127:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_simple.c:134:17: branch_true: ...to here
libtirpc-1.3.7/src/clnt_simple.c:135:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_simple.c:140:31: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:119:32: danger: 'rcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  117|   			rpc_createerr.cf_stat = RPC_SYSTEMERROR;
#  118|   			rpc_createerr.cf_error.re_errno = errno;
#  119|-> 			return (rpc_createerr.cf_stat);
#  120|   		}
#  121|   		thr_setspecific(rpc_call_key, (void *) rcp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
libtirpc-1.3.7/src/clnt_simple.c:140:31: warning[-Wanalyzer-malloc-leak]: leak of 'rcp'
libtirpc-1.3.7/src/clnt_simple.c:114:12: branch_true: following 'true' branch (when 'rcp' is NULL)...
libtirpc-1.3.7/src/clnt_simple.c:115:23: branch_true: ...to here
libtirpc-1.3.7/src/clnt_simple.c:115:23: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_simple.c:116:20: branch_false: following 'false' branch (when 'rcp' is non-NULL)...
libtirpc-1.3.7/src/clnt_simple.c:121:17: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:127:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_simple.c:134:17: branch_true: ...to here
libtirpc-1.3.7/src/clnt_simple.c:135:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_simple.c:140:31: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:140:31: danger: 'rcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  138|   		 * Using the first successful transport for that type
#  139|   		 */
#  140|-> 		rcp->client = clnt_create(host, prognum, versnum, nettype);
#  141|   		rcp->pid = getpid();
#  142|   		if (rcp->client == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
libtirpc-1.3.7/src/clnt_simple.c:143:33: warning[-Wanalyzer-malloc-leak]: leak of 'rcp'
libtirpc-1.3.7/src/clnt_simple.c:114:12: branch_true: following 'true' branch (when 'rcp' is NULL)...
libtirpc-1.3.7/src/clnt_simple.c:115:23: branch_true: ...to here
libtirpc-1.3.7/src/clnt_simple.c:115:23: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_simple.c:116:20: branch_false: following 'false' branch (when 'rcp' is non-NULL)...
libtirpc-1.3.7/src/clnt_simple.c:121:17: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:127:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_simple.c:134:17: branch_true: ...to here
libtirpc-1.3.7/src/clnt_simple.c:135:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_simple.c:140:31: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:142:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_simple.c:143:33: branch_true: ...to here
libtirpc-1.3.7/src/clnt_simple.c:143:33: danger: 'rcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  141|   		rcp->pid = getpid();
#  142|   		if (rcp->client == NULL) {
#  143|-> 			return (rpc_createerr.cf_stat);
#  144|   		}
#  145|   		/*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
libtirpc-1.3.7/src/clnt_simple.c:152:24: warning[-Wanalyzer-malloc-leak]: leak of 'rcp'
libtirpc-1.3.7/src/clnt_simple.c:114:12: branch_true: following 'true' branch (when 'rcp' is NULL)...
libtirpc-1.3.7/src/clnt_simple.c:115:23: branch_true: ...to here
libtirpc-1.3.7/src/clnt_simple.c:115:23: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_simple.c:116:20: branch_false: following 'false' branch (when 'rcp' is non-NULL)...
libtirpc-1.3.7/src/clnt_simple.c:121:17: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:127:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_simple.c:134:17: branch_true: ...to here
libtirpc-1.3.7/src/clnt_simple.c:135:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_simple.c:140:31: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:142:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_simple.c:150:17: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:152:24: danger: 'rcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  150|   		timeout.tv_usec = 0;
#  151|   		timeout.tv_sec = 5;
#  152|-> 		(void) CLNT_CONTROL(rcp->client,
#  153|   				CLSET_RETRY_TIMEOUT, (char *)(void *)&timeout);
#  154|   		if (CLNT_CONTROL(rcp->client, CLGET_FD, (char *)(void *)&fd))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
libtirpc-1.3.7/src/clnt_simple.c:154:21: warning[-Wanalyzer-malloc-leak]: leak of 'rcp'
libtirpc-1.3.7/src/clnt_simple.c:114:12: branch_true: following 'true' branch (when 'rcp' is NULL)...
libtirpc-1.3.7/src/clnt_simple.c:115:23: branch_true: ...to here
libtirpc-1.3.7/src/clnt_simple.c:115:23: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_simple.c:116:20: branch_false: following 'false' branch (when 'rcp' is non-NULL)...
libtirpc-1.3.7/src/clnt_simple.c:121:17: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:127:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_simple.c:134:17: branch_true: ...to here
libtirpc-1.3.7/src/clnt_simple.c:135:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_simple.c:140:31: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:142:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_simple.c:150:17: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:154:21: danger: 'rcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  152|   		(void) CLNT_CONTROL(rcp->client,
#  153|   				CLSET_RETRY_TIMEOUT, (char *)(void *)&timeout);
#  154|-> 		if (CLNT_CONTROL(rcp->client, CLGET_FD, (char *)(void *)&fd))
#  155|   			fcntl(fd, F_SETFD, 1);	/* make it "close on exec" */
#  156|   		rcp->prognum = prognum;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
libtirpc-1.3.7/src/clnt_simple.c:155:25: warning[-Wanalyzer-malloc-leak]: leak of 'rcp'
libtirpc-1.3.7/src/clnt_simple.c:114:12: branch_true: following 'true' branch (when 'rcp' is NULL)...
libtirpc-1.3.7/src/clnt_simple.c:115:23: branch_true: ...to here
libtirpc-1.3.7/src/clnt_simple.c:115:23: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_simple.c:116:20: branch_false: following 'false' branch (when 'rcp' is non-NULL)...
libtirpc-1.3.7/src/clnt_simple.c:121:17: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:127:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_simple.c:134:17: branch_true: ...to here
libtirpc-1.3.7/src/clnt_simple.c:135:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_simple.c:140:31: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:142:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_simple.c:150:17: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:154:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_simple.c:155:25: branch_true: ...to here
libtirpc-1.3.7/src/clnt_simple.c:155:25: danger: 'rcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  153|   				CLSET_RETRY_TIMEOUT, (char *)(void *)&timeout);
#  154|   		if (CLNT_CONTROL(rcp->client, CLGET_FD, (char *)(void *)&fd))
#  155|-> 			fcntl(fd, F_SETFD, 1);	/* make it "close on exec" */
#  156|   		rcp->prognum = prognum;
#  157|   		rcp->versnum = versnum;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
libtirpc-1.3.7/src/clnt_simple.c:171:21: warning[-Wanalyzer-malloc-leak]: leak of 'rcp'
libtirpc-1.3.7/src/clnt_simple.c:114:12: branch_true: following 'true' branch (when 'rcp' is NULL)...
libtirpc-1.3.7/src/clnt_simple.c:115:23: branch_true: ...to here
libtirpc-1.3.7/src/clnt_simple.c:115:23: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_simple.c:116:20: branch_false: following 'false' branch (when 'rcp' is non-NULL)...
libtirpc-1.3.7/src/clnt_simple.c:121:17: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:127:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_simple.c:134:17: branch_true: ...to here
libtirpc-1.3.7/src/clnt_simple.c:135:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_simple.c:140:31: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:142:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_simple.c:150:17: branch_false: ...to here
libtirpc-1.3.7/src/clnt_simple.c:171:21: danger: 'rcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  169|   	
#  170|   	/* LINTED const castaway */
#  171|-> 	clnt_stat = CLNT_CALL(rcp->client, procnum, inproc, (char *) in,
#  172|   	    outproc, out, tottimeout);
#  173|   	/*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
libtirpc-1.3.7/src/clnt_vc.c:206:44: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_vc.c:203:24: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:206:44: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:206:44: danger: 'cl' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  204|   	ct = (struct ct_data *)mem_alloc(sizeof (*ct));
#  205|   	if ((cl == (CLIENT *)NULL) || (ct == (struct ct_data *)NULL)) {
#  206|-> 		struct rpc_createerr *ce = &get_rpc_createerr();
#  207|   		ce->cf_stat = RPC_SYSTEMERROR;
#  208|   		ce->cf_error.re_errno = errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
libtirpc-1.3.7/src/clnt_vc.c:206:44: warning[-Wanalyzer-malloc-leak]: leak of 'ct'
libtirpc-1.3.7/src/clnt_vc.c:204:32: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:206:44: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:206:44: danger: 'ct' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  204|   	ct = (struct ct_data *)mem_alloc(sizeof (*ct));
#  205|   	if ((cl == (CLIENT *)NULL) || (ct == (struct ct_data *)NULL)) {
#  206|-> 		struct rpc_createerr *ce = &get_rpc_createerr();
#  207|   		ce->cf_stat = RPC_SYSTEMERROR;
#  208|   		ce->cf_error.re_errno = errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
libtirpc-1.3.7/src/clnt_vc.c:209:17: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_vc.c:203:24: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:206:44: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:209:17: danger: 'cl' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  207|   		ce->cf_stat = RPC_SYSTEMERROR;
#  208|   		ce->cf_error.re_errno = errno;
#  209|-> 		(void) syslog(LOG_ERR, clnt_vc_errstr,
#  210|   		    clnt_vc_str, __no_mem_str);
#  211|   		goto err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
libtirpc-1.3.7/src/clnt_vc.c:209:17: warning[-Wanalyzer-malloc-leak]: leak of 'ct'
libtirpc-1.3.7/src/clnt_vc.c:204:32: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:206:44: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:209:17: danger: 'ct' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  207|   		ce->cf_stat = RPC_SYSTEMERROR;
#  208|   		ce->cf_error.re_errno = errno;
#  209|-> 		(void) syslog(LOG_ERR, clnt_vc_errstr,
#  210|   		    clnt_vc_str, __no_mem_str);
#  211|   		goto err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
libtirpc-1.3.7/src/clnt_vc.c:222:30: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:203:24: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:217:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:218:31: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:218:31: call_function: calling 'fd_locks_init' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:218:31: return_function: returning to 'clnt_vc_create' from 'fd_locks_init'
libtirpc-1.3.7/src/clnt_vc.c:219:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:221:25: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:222:30: danger: 'cl' leaks here; was allocated at [(2)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/1)
#  220|   			struct rpc_createerr *ce;
#  221|   			mutex_unlock(&clnt_fd_lock);
#  222|-> 			ce = &get_rpc_createerr();
#  223|   			ce->cf_stat = RPC_SYSTEMERROR;
#  224|   			ce->cf_error.re_errno = errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
libtirpc-1.3.7/src/clnt_vc.c:222:30: warning[-Wanalyzer-malloc-leak]: leak of 'ct'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:204:32: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:217:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:218:31: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:218:31: call_function: calling 'fd_locks_init' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:218:31: return_function: returning to 'clnt_vc_create' from 'fd_locks_init'
libtirpc-1.3.7/src/clnt_vc.c:219:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:221:25: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:222:30: danger: 'ct' leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
#  220|   			struct rpc_createerr *ce;
#  221|   			mutex_unlock(&clnt_fd_lock);
#  222|-> 			ce = &get_rpc_createerr();
#  223|   			ce->cf_stat = RPC_SYSTEMERROR;
#  224|   			ce->cf_error.re_errno = errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
libtirpc-1.3.7/src/clnt_vc.c:232:22: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:203:24: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:217:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:228:19: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:231:17: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:232:22: danger: 'cl' leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
#  230|   		struct rpc_createerr *ce;
#  231|   		mutex_unlock(&clnt_fd_lock);
#  232|-> 		ce = &get_rpc_createerr();
#  233|   		ce->cf_stat = RPC_SYSTEMERROR;
#  234|   		ce->cf_error.re_errno = errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
libtirpc-1.3.7/src/clnt_vc.c:232:22: warning[-Wanalyzer-malloc-leak]: leak of 'ct'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:204:32: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:217:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:228:19: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:231:17: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:232:22: danger: 'ct' leaks here; was allocated at [(2)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/1)
#  230|   		struct rpc_createerr *ce;
#  231|   		mutex_unlock(&clnt_fd_lock);
#  232|-> 		ce = &get_rpc_createerr();
#  233|   		ce->cf_stat = RPC_SYSTEMERROR;
#  234|   		ce->cf_error.re_errno = errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
libtirpc-1.3.7/src/clnt_vc.c:246:52: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:203:24: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:244:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:245:21: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:245:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:246:52: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:246:52: danger: 'cl' leaks here; was allocated at [(2)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/1)
#  244|   	if (getpeername(fd, (struct sockaddr *)&ss, &slen) < 0) {
#  245|   		if (errno != ENOTCONN) {
#  246|-> 			struct rpc_createerr *ce = &get_rpc_createerr();
#  247|   			ce->cf_stat = RPC_SYSTEMERROR;
#  248|   			ce->cf_error.re_errno = errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
libtirpc-1.3.7/src/clnt_vc.c:246:52: warning[-Wanalyzer-malloc-leak]: leak of 'ct'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:204:32: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:244:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:245:21: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:245:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:246:52: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:246:52: danger: 'ct' leaks here; was allocated at [(2)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/1)
#  244|   	if (getpeername(fd, (struct sockaddr *)&ss, &slen) < 0) {
#  245|   		if (errno != ENOTCONN) {
#  246|-> 			struct rpc_createerr *ce = &get_rpc_createerr();
#  247|   			ce->cf_stat = RPC_SYSTEMERROR;
#  248|   			ce->cf_error.re_errno = errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
libtirpc-1.3.7/src/clnt_vc.c:252:21: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:203:24: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:244:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:245:21: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:245:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:252:64: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:252:21: danger: 'cl' leaks here; was allocated at [(2)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/1)
#  250|   			goto err;
#  251|   		}
#  252|-> 		if (connect(fd, (struct sockaddr *)raddr->buf, raddr->len) < 0){
#  253|   			if (errno != EISCONN) {
#  254|   				struct rpc_createerr *ce = &get_rpc_createerr();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
libtirpc-1.3.7/src/clnt_vc.c:252:21: warning[-Wanalyzer-malloc-leak]: leak of 'ct'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:204:32: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:244:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:245:21: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:245:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:252:64: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:252:21: danger: 'ct' leaks here; was allocated at [(2)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/1)
#  250|   			goto err;
#  251|   		}
#  252|-> 		if (connect(fd, (struct sockaddr *)raddr->buf, raddr->len) < 0){
#  253|   			if (errno != EISCONN) {
#  254|   				struct rpc_createerr *ce = &get_rpc_createerr();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
libtirpc-1.3.7/src/clnt_vc.c:254:60: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:203:24: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:244:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:245:21: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:245:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:252:64: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:252:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:253:29: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:253:28: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:254:60: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:254:60: danger: 'cl' leaks here; was allocated at [(2)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/1)
#  252|   		if (connect(fd, (struct sockaddr *)raddr->buf, raddr->len) < 0){
#  253|   			if (errno != EISCONN) {
#  254|-> 				struct rpc_createerr *ce = &get_rpc_createerr();
#  255|   				ce->cf_stat = RPC_SYSTEMERROR;
#  256|   				ce->cf_error.re_errno = errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
libtirpc-1.3.7/src/clnt_vc.c:254:60: warning[-Wanalyzer-malloc-leak]: leak of 'ct'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:204:32: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:244:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:245:21: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:245:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:252:64: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:252:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:253:29: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:253:28: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:254:60: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:254:60: danger: 'ct' leaks here; was allocated at [(2)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/1)
#  252|   		if (connect(fd, (struct sockaddr *)raddr->buf, raddr->len) < 0){
#  253|   			if (errno != EISCONN) {
#  254|-> 				struct rpc_createerr *ce = &get_rpc_createerr();
#  255|   				ce->cf_stat = RPC_SYSTEMERROR;
#  256|   				ce->cf_error.re_errno = errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
libtirpc-1.3.7/src/clnt_vc.c:262:14: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:203:24: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:244:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:262:14: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:262:14: danger: 'cl' leaks here; was allocated at [(2)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/1)
#  260|   		}
#  261|   	}
#  262|-> 	if (!__rpc_fd2sockinfo(fd, &si))
#  263|   		goto err;
#  264|   	thr_sigsetmask(SIG_SETMASK, &(mask), NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
libtirpc-1.3.7/src/clnt_vc.c:262:14: warning[-Wanalyzer-malloc-leak]: leak of 'ct'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:204:32: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:244:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:262:14: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:262:14: danger: 'ct' leaks here; was allocated at [(2)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/1)
#  260|   		}
#  261|   	}
#  262|-> 	if (!__rpc_fd2sockinfo(fd, &si))
#  263|   		goto err;
#  264|   	thr_sigsetmask(SIG_SETMASK, &(mask), NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
libtirpc-1.3.7/src/clnt_vc.c:297:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:262:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:264:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:275:27: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:276:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:278:45: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:297:9: danger: '<unknown>' leaks here; was allocated at [(15)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/14)
#  295|   	 * pre-serialize the static part of the call msg and stash it away
#  296|   	 */
#  297|-> 	xdrmem_create(&(ct->ct_xdrs), ct->ct_u.ct_mcallc, MCALL_MSG_SIZE,
#  298|   	    XDR_ENCODE);
#  299|   	if (! xdr_callhdr(&(ct->ct_xdrs), &call_msg)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
libtirpc-1.3.7/src/clnt_vc.c:297:9: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:203:24: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:262:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:264:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:276:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:278:45: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:297:9: danger: 'cl' leaks here; was allocated at [(2)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/1)
#  295|   	 * pre-serialize the static part of the call msg and stash it away
#  296|   	 */
#  297|-> 	xdrmem_create(&(ct->ct_xdrs), ct->ct_u.ct_mcallc, MCALL_MSG_SIZE,
#  298|   	    XDR_ENCODE);
#  299|   	if (! xdr_callhdr(&(ct->ct_xdrs), &call_msg)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
libtirpc-1.3.7/src/clnt_vc.c:297:9: warning[-Wanalyzer-malloc-leak]: leak of 'ct'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:204:32: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:262:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:264:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:276:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:278:45: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:297:9: danger: 'ct' leaks here; was allocated at [(2)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/1)
#  295|   	 * pre-serialize the static part of the call msg and stash it away
#  296|   	 */
#  297|-> 	xdrmem_create(&(ct->ct_xdrs), ct->ct_u.ct_mcallc, MCALL_MSG_SIZE,
#  298|   	    XDR_ENCODE);
#  299|   	if (! xdr_callhdr(&(ct->ct_xdrs), &call_msg)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
libtirpc-1.3.7/src/clnt_vc.c:299:15: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:203:24: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:262:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:264:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:276:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:278:45: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:299:15: danger: 'cl' leaks here; was allocated at [(2)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/1)
#  297|   	xdrmem_create(&(ct->ct_xdrs), ct->ct_u.ct_mcallc, MCALL_MSG_SIZE,
#  298|   	    XDR_ENCODE);
#  299|-> 	if (! xdr_callhdr(&(ct->ct_xdrs), &call_msg)) {
#  300|   		if (ct->ct_closeit) {
#  301|   			(void)close(fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
libtirpc-1.3.7/src/clnt_vc.c:301:31: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:203:24: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:262:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:264:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:276:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:278:45: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:299:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:300:21: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:300:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:301:31: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:301:31: danger: 'cl' leaks here; was allocated at [(2)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/1)
#  299|   	if (! xdr_callhdr(&(ct->ct_xdrs), &call_msg)) {
#  300|   		if (ct->ct_closeit) {
#  301|-> 			(void)close(fd);
#  302|   		}
#  303|   		goto err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
libtirpc-1.3.7/src/clnt_vc.c:305:23: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:203:24: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:262:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:264:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:276:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:278:45: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:299:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:305:23: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:305:23: danger: 'cl' leaks here; was allocated at [(2)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/1)
#  303|   		goto err;
#  304|   	}
#  305|-> 	ct->ct_mpos = XDR_GETPOS(&(ct->ct_xdrs));
#  306|   	XDR_DESTROY(&(ct->ct_xdrs));
#  307|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
libtirpc-1.3.7/src/clnt_vc.c:306:9: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:203:24: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:262:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:264:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:276:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:278:45: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:299:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:305:23: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:306:9: branch_true: following 'true' branch...
libtirpc-1.3.7/src/clnt_vc.c:306:9: branch_true: ...to here
libtirpc-1.3.7/src/clnt_vc.c:306:9: danger: 'cl' leaks here; was allocated at [(2)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/1)
#  304|   	}
#  305|   	ct->ct_mpos = XDR_GETPOS(&(ct->ct_xdrs));
#  306|-> 	XDR_DESTROY(&(ct->ct_xdrs));
#  307|   
#  308|   	/*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
libtirpc-1.3.7/src/clnt_vc.c:314:23: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:203:24: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:262:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:264:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:276:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:278:45: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:299:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:305:23: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:314:23: danger: 'cl' leaks here; was allocated at [(2)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/1)
#  312|   	cl->cl_ops = clnt_vc_ops();
#  313|   	cl->cl_private = ct;
#  314|-> 	cl->cl_auth = authnone_create();
#  315|   	sendsz = __rpc_get_t_size(si.si_af, si.si_proto, (int)sendsz);
#  316|   	recvsz = __rpc_get_t_size(si.si_af, si.si_proto, (int)recvsz);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
libtirpc-1.3.7/src/clnt_vc.c:315:18: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:203:24: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:262:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:264:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:276:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:278:45: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:299:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:305:23: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:315:18: danger: 'cl' leaks here; was allocated at [(2)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/1)
#  313|   	cl->cl_private = ct;
#  314|   	cl->cl_auth = authnone_create();
#  315|-> 	sendsz = __rpc_get_t_size(si.si_af, si.si_proto, (int)sendsz);
#  316|   	recvsz = __rpc_get_t_size(si.si_af, si.si_proto, (int)recvsz);
#  317|   	xdrrec_create(&(ct->ct_xdrs), sendsz, recvsz,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
libtirpc-1.3.7/src/clnt_vc.c:316:18: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:203:24: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:262:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:264:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:276:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:278:45: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:299:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:305:23: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:316:18: danger: 'cl' leaks here; was allocated at [(2)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/1)
#  314|   	cl->cl_auth = authnone_create();
#  315|   	sendsz = __rpc_get_t_size(si.si_af, si.si_proto, (int)sendsz);
#  316|-> 	recvsz = __rpc_get_t_size(si.si_af, si.si_proto, (int)recvsz);
#  317|   	xdrrec_create(&(ct->ct_xdrs), sendsz, recvsz,
#  318|   	    cl->cl_private, read_vc, write_vc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
libtirpc-1.3.7/src/clnt_vc.c:317:9: warning[-Wanalyzer-malloc-leak]: leak of 'cl'
libtirpc-1.3.7/src/clnt_vc.c:178:1: enter_function: entry to 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:203:24: acquire_memory: allocated here
libtirpc-1.3.7/src/clnt_vc.c:205:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:214:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:228:19: call_function: calling 'fd_lock_create' from 'clnt_vc_create'
libtirpc-1.3.7/src/clnt_vc.c:228:19: return_function: returning to 'clnt_vc_create' from 'fd_lock_create'
libtirpc-1.3.7/src/clnt_vc.c:229:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:241:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:262:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:264:9: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:276:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:278:45: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:299:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/clnt_vc.c:305:23: branch_false: ...to here
libtirpc-1.3.7/src/clnt_vc.c:317:9: danger: 'cl' leaks here; was allocated at [(2)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/1)
#  315|   	sendsz = __rpc_get_t_size(si.si_af, si.si_proto, (int)sendsz);
#  316|   	recvsz = __rpc_get_t_size(si.si_af, si.si_proto, (int)recvsz);
#  317|-> 	xdrrec_create(&(ct->ct_xdrs), sendsz, recvsz,
#  318|   	    cl->cl_private, read_vc, write_vc);
#  319|   	return (cl);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def140]
libtirpc-1.3.7/src/debug.c:71:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtirpc-1.3.7/src/debug.c:66:9: acquire_resource: 'va_start' called here
libtirpc-1.3.7/src/debug.c:67:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/debug.c:71:17: branch_false: ...to here
libtirpc-1.3.7/src/debug.c:71:17: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   69|   		fprintf(stderr, "\n");
#   70|   	} else
#   71|-> 		vsyslog(LOG_NOTICE, fmt, args);
#   72|   	va_end(args);
#   73|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def141]
libtirpc-1.3.7/src/debug.h:56:25: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtirpc-1.3.7/src/authgss_prot.c:309:1: enter_function: entry to 'gss_log_debug'
libtirpc-1.3.7/src/authgss_prot.c:313:9: acquire_resource: 'va_start' called here
libtirpc-1.3.7/src/authgss_prot.c:314:9: call_function: calling 'vlibtirpc_log_dbg' from 'gss_log_debug'
#   54|   			fprintf(stderr, "\n");
#   55|   		} else
#   56|-> 			vsyslog(LOG_NOTICE, fmt, args);
#   57|   	}
#   58|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
libtirpc-1.3.7/src/getnetconfig.c:139:13: warning[-Wanalyzer-malloc-leak]: leak of '__nc_error()'
libtirpc-1.3.7/src/getnetconfig.c:356:1: enter_function: entry to 'endnetconfig'
libtirpc-1.3.7/src/getnetconfig.c:367:9: call_function: calling '__nc_error' from 'endnetconfig'
libtirpc-1.3.7/src/getnetconfig.c:367:9: return_function: returning to 'endnetconfig' from '__nc_error'
libtirpc-1.3.7/src/getnetconfig.c:139:13: danger: '__nc_error()' leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
#  137|   	 * fails.
#  138|   	 */
#  139|-> 	if (nc_key == KEY_INITIALIZER) {
#  140|   		error = 0;
#  141|   		mutex_lock(&nc_lock);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
libtirpc-1.3.7/src/getnetconfig.c:207:5: warning[-Wanalyzer-malloc-leak]: leak of '__nc_error()'
libtirpc-1.3.7/src/getnetconfig.c:182:1: enter_function: entry to 'setnetconfig'
libtirpc-1.3.7/src/getnetconfig.c:186:8: branch_false: following 'false' branch (when 'nc_vars' is non-NULL)...
libtirpc-1.3.7/src/getnetconfig.c:195:5: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:197:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:206:5: call_function: calling '__nc_error' from 'setnetconfig'
libtirpc-1.3.7/src/getnetconfig.c:206:5: return_function: returning to 'setnetconfig' from '__nc_error'
libtirpc-1.3.7/src/getnetconfig.c:207:5: danger: '__nc_error()' leaks here; was allocated at [(10)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/9)
#  205|       mutex_unlock(&nc_db_lock);
#  206|       nc_error = NC_NONETCONFIG;
#  207|->     free(nc_vars);
#  208|       return (NULL);
#  209|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
libtirpc-1.3.7/src/getnetconfig.c:235:9: warning[-Wanalyzer-malloc-leak]: leak of '__nc_error()'
libtirpc-1.3.7/src/getnetconfig.c:221:1: enter_function: entry to 'getnetconfig'
libtirpc-1.3.7/src/getnetconfig.c:234:9: call_function: calling '__nc_error' from 'getnetconfig'
libtirpc-1.3.7/src/getnetconfig.c:234:9: return_function: returning to 'getnetconfig' from '__nc_error'
libtirpc-1.3.7/src/getnetconfig.c:235:9: danger: '__nc_error()' leaks here; was allocated at [(6)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/5)
#  233|       if (ncp == NULL || nc_file == NULL) {
#  234|   	nc_error = NC_NOTINIT;
#  235|-> 	mutex_unlock(&nc_db_lock);
#  236|   	return (NULL);
#  237|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
libtirpc-1.3.7/src/getnetconfig.c:274:9: warning[-Wanalyzer-malloc-leak]: leak of '__nc_error()'
libtirpc-1.3.7/src/getnetconfig.c:221:1: enter_function: entry to 'getnetconfig'
libtirpc-1.3.7/src/getnetconfig.c:233:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:239:5: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:272:5: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:273:9: call_function: calling '__nc_error' from 'getnetconfig'
libtirpc-1.3.7/src/getnetconfig.c:273:9: return_function: returning to 'getnetconfig' from '__nc_error'
libtirpc-1.3.7/src/getnetconfig.c:274:9: danger: '__nc_error()' leaks here; was allocated at [(10)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/9)
#  272|       default:
#  273|   	nc_error = NC_NOTINIT;
#  274|-> 	mutex_unlock(&nc_db_lock);
#  275|   	return (NULL);
#  276|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
libtirpc-1.3.7/src/getnetconfig.c:427:8: warning[-Wanalyzer-malloc-leak]: leak of '__nc_error()'
libtirpc-1.3.7/src/getnetconfig.c:418:1: enter_function: entry to 'getnetconfigent'
libtirpc-1.3.7/src/getnetconfig.c:426:5: call_function: calling '__nc_error' from 'getnetconfigent'
libtirpc-1.3.7/src/getnetconfig.c:426:5: return_function: returning to 'getnetconfigent' from '__nc_error'
libtirpc-1.3.7/src/getnetconfig.c:427:8: danger: '__nc_error()' leaks here; was allocated at [(6)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/5)
#  425|   
#  426|       nc_error = NC_NOTFOUND;	/* default error. */
#  427|->     if (netid == NULL || strlen(netid) == 0) {
#  428|   	return (NULL);
#  429|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
libtirpc-1.3.7/src/getnetconfig.c:548:13: warning[-Wanalyzer-malloc-leak]: leak of '__nc_error()'
libtirpc-1.3.7/src/getnetconfig.c:540:1: enter_function: entry to 'parse_ncp'
libtirpc-1.3.7/src/getnetconfig.c:547:5: call_function: calling '__nc_error' from 'parse_ncp'
libtirpc-1.3.7/src/getnetconfig.c:547:5: return_function: returning to 'parse_ncp' from '__nc_error'
libtirpc-1.3.7/src/getnetconfig.c:548:13: danger: '__nc_error()' leaks here; was allocated at [(6)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/5)
#  546|   
#  547|       nc_error = NC_BADFILE;	/* nearly anything that breaks is for this reason */
#  548|->     stringp[strlen(stringp)-1] = '\0';	/* get rid of newline */
#  549|       /* netid */
#  550|       if ((ncp->nc_netid = strtok_r(stringp, "\t ", &lasts)) == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def148]
libtirpc-1.3.7/src/getnetconfig.c:615:22: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen("/etc/netconfig", "r")'
libtirpc-1.3.7/src/getnetconfig.c:418:1: enter_function: entry to 'getnetconfigent'
libtirpc-1.3.7/src/getnetconfig.c:427:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:463:17: acquire_resource: opened here
libtirpc-1.3.7/src/getnetconfig.c:463:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:468:18: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:468:8: branch_false: following 'false' branch (when 'linep' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:478:16: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:481:18: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:485:12: branch_false: following 'false' branch (when 'tmpp' is non-NULL)...
libtirpc-1.3.7/src/getnetconfig.c:489:13: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:491:16: branch_false: following 'false' branch (when 'ncp' is non-NULL)...
libtirpc-1.3.7/src/getnetconfig.c:495:13: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:496:17: call_function: calling 'parse_ncp' from 'getnetconfigent'
#  613|   	ncp->nc_nlookups = 0;
#  614|   	while ((cp = tokenp) != NULL) {
#  615|-> 	    tokenp = _get_next_token(cp, ',');
#  616|   	    ncp->nc_lookups[(size_t)ncp->nc_nlookups++] = cp;
#  617|   	    ncp->nc_lookups = (char **)realloc(ncp->nc_lookups,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
libtirpc-1.3.7/src/getnetconfig.c:615:22: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libtirpc-1.3.7/src/getnetconfig.c:418:1: enter_function: entry to 'getnetconfigent'
libtirpc-1.3.7/src/getnetconfig.c:427:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:463:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:468:18: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:468:8: branch_false: following 'false' branch (when 'linep' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:478:16: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:481:18: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:485:12: branch_false: following 'false' branch (when 'tmpp' is non-NULL)...
libtirpc-1.3.7/src/getnetconfig.c:489:13: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:491:16: branch_false: following 'false' branch (when 'ncp' is non-NULL)...
libtirpc-1.3.7/src/getnetconfig.c:495:13: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:496:17: call_function: calling 'parse_ncp' from 'getnetconfigent'
#  613|   	ncp->nc_nlookups = 0;
#  614|   	while ((cp = tokenp) != NULL) {
#  615|-> 	    tokenp = _get_next_token(cp, ',');
#  616|   	    ncp->nc_lookups[(size_t)ncp->nc_nlookups++] = cp;
#  617|   	    ncp->nc_lookups = (char **)realloc(ncp->nc_lookups,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
libtirpc-1.3.7/src/getnetconfig.c:615:22: warning[-Wanalyzer-malloc-leak]: leak of 'fopen("/etc/netconfig", "r")'
libtirpc-1.3.7/src/getnetconfig.c:418:1: enter_function: entry to 'getnetconfigent'
libtirpc-1.3.7/src/getnetconfig.c:427:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:463:17: acquire_memory: allocated here
libtirpc-1.3.7/src/getnetconfig.c:463:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:468:18: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:468:8: branch_false: following 'false' branch (when 'linep' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:478:16: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:481:18: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:485:12: branch_false: following 'false' branch (when 'tmpp' is non-NULL)...
libtirpc-1.3.7/src/getnetconfig.c:489:13: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:491:16: branch_false: following 'false' branch (when 'ncp' is non-NULL)...
libtirpc-1.3.7/src/getnetconfig.c:495:13: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:496:17: call_function: calling 'parse_ncp' from 'getnetconfigent'
#  613|   	ncp->nc_nlookups = 0;
#  614|   	while ((cp = tokenp) != NULL) {
#  615|-> 	    tokenp = _get_next_token(cp, ',');
#  616|   	    ncp->nc_lookups[(size_t)ncp->nc_nlookups++] = cp;
#  617|   	    ncp->nc_lookups = (char **)realloc(ncp->nc_lookups,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
libtirpc-1.3.7/src/getnetconfig.c:615:22: warning[-Wanalyzer-malloc-leak]: leak of 'list'
libtirpc-1.3.7/src/getnetconfig.c:221:1: enter_function: entry to 'getnetconfig'
libtirpc-1.3.7/src/getnetconfig.c:233:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:239:5: branch_true: following 'true' branch...
libtirpc-1.3.7/src/getnetconfig.c:240:5: branch_true: ...to here
libtirpc-1.3.7/src/getnetconfig.c:252:16: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:267:13: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:267:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:278:24: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:279:8: branch_false: following 'false' branch (when 'stringp' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:295:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:301:14: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:303:38: acquire_memory: allocated here
libtirpc-1.3.7/src/getnetconfig.c:304:8: branch_false: following 'false' branch (when 'list' is non-NULL)...
libtirpc-1.3.7/src/getnetconfig.c:309:31: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:310:8: branch_false: following 'false' branch (when 'np' is non-NULL)...
libtirpc-1.3.7/src/getnetconfig.c:316:5: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:320:9: call_function: calling 'parse_ncp' from 'getnetconfig'
#  613|   	ncp->nc_nlookups = 0;
#  614|   	while ((cp = tokenp) != NULL) {
#  615|-> 	    tokenp = _get_next_token(cp, ',');
#  616|   	    ncp->nc_lookups[(size_t)ncp->nc_nlookups++] = cp;
#  617|   	    ncp->nc_lookups = (char **)realloc(ncp->nc_lookups,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
libtirpc-1.3.7/src/getnetconfig.c:615:22: warning[-Wanalyzer-malloc-leak]: leak of 'ncp'
libtirpc-1.3.7/src/getnetconfig.c:418:1: enter_function: entry to 'getnetconfigent'
libtirpc-1.3.7/src/getnetconfig.c:427:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:463:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:468:18: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:468:8: branch_false: following 'false' branch (when 'linep' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:478:16: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:481:18: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:485:12: branch_false: following 'false' branch (when 'tmpp' is non-NULL)...
libtirpc-1.3.7/src/getnetconfig.c:489:13: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:492:21: acquire_memory: allocated here
libtirpc-1.3.7/src/getnetconfig.c:491:16: branch_false: following 'false' branch (when 'ncp' is non-NULL)...
libtirpc-1.3.7/src/getnetconfig.c:495:13: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:496:17: call_function: calling 'parse_ncp' from 'getnetconfigent'
#  613|   	ncp->nc_nlookups = 0;
#  614|   	while ((cp = tokenp) != NULL) {
#  615|-> 	    tokenp = _get_next_token(cp, ',');
#  616|   	    ncp->nc_lookups[(size_t)ncp->nc_nlookups++] = cp;
#  617|   	    ncp->nc_lookups = (char **)realloc(ncp->nc_lookups,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
libtirpc-1.3.7/src/getnetconfig.c:616:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '*ncp.nc_lookups + *ncp.nc_nlookups * 8'
libtirpc-1.3.7/src/getnetconfig.c:418:1: enter_function: entry to 'getnetconfigent'
libtirpc-1.3.7/src/getnetconfig.c:427:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:463:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:468:18: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:468:8: branch_false: following 'false' branch (when 'linep' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:478:16: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:481:18: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:485:12: branch_false: following 'false' branch (when 'tmpp' is non-NULL)...
libtirpc-1.3.7/src/getnetconfig.c:489:13: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:491:16: branch_false: following 'false' branch (when 'ncp' is non-NULL)...
libtirpc-1.3.7/src/getnetconfig.c:495:13: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:496:17: call_function: calling 'parse_ncp' from 'getnetconfigent'
#  614|   	while ((cp = tokenp) != NULL) {
#  615|   	    tokenp = _get_next_token(cp, ',');
#  616|-> 	    ncp->nc_lookups[(size_t)ncp->nc_nlookups++] = cp;
#  617|   	    ncp->nc_lookups = (char **)realloc(ncp->nc_lookups,
#  618|   		(size_t)(ncp->nc_nlookups+1) *sizeof(char *));	/* for next loop */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def154]
libtirpc-1.3.7/src/getnetconfig.c:616:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '*ncp.nc_lookups'
libtirpc-1.3.7/src/getnetconfig.c:418:1: enter_function: entry to 'getnetconfigent'
libtirpc-1.3.7/src/getnetconfig.c:427:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:463:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:468:18: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:468:8: branch_false: following 'false' branch (when 'linep' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:478:16: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:481:18: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:485:12: branch_false: following 'false' branch (when 'tmpp' is non-NULL)...
libtirpc-1.3.7/src/getnetconfig.c:489:13: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:491:16: branch_false: following 'false' branch (when 'ncp' is non-NULL)...
libtirpc-1.3.7/src/getnetconfig.c:495:13: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:496:17: call_function: calling 'parse_ncp' from 'getnetconfigent'
#  614|   	while ((cp = tokenp) != NULL) {
#  615|   	    tokenp = _get_next_token(cp, ',');
#  616|-> 	    ncp->nc_lookups[(size_t)ncp->nc_nlookups++] = cp;
#  617|   	    ncp->nc_lookups = (char **)realloc(ncp->nc_lookups,
#  618|   		(size_t)(ncp->nc_nlookups+1) *sizeof(char *));	/* for next loop */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def155]
libtirpc-1.3.7/src/getnetconfig.c:617:13: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libtirpc-1.3.7/src/getnetconfig.c:418:1: enter_function: entry to 'getnetconfigent'
libtirpc-1.3.7/src/getnetconfig.c:427:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:463:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:468:18: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:468:8: branch_false: following 'false' branch (when 'linep' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:478:16: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetconfig.c:481:18: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:485:12: branch_false: following 'false' branch (when 'tmpp' is non-NULL)...
libtirpc-1.3.7/src/getnetconfig.c:489:13: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:491:16: branch_false: following 'false' branch (when 'ncp' is non-NULL)...
libtirpc-1.3.7/src/getnetconfig.c:495:13: branch_false: ...to here
libtirpc-1.3.7/src/getnetconfig.c:496:17: call_function: calling 'parse_ncp' from 'getnetconfigent'
#  615|   	    tokenp = _get_next_token(cp, ',');
#  616|   	    ncp->nc_lookups[(size_t)ncp->nc_nlookups++] = cp;
#  617|-> 	    ncp->nc_lookups = (char **)realloc(ncp->nc_lookups,
#  618|   		(size_t)(ncp->nc_nlookups+1) *sizeof(char *));	/* for next loop */
#  619|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
libtirpc-1.3.7/src/getnetconfig.c:633:5: warning[-Wanalyzer-malloc-leak]: leak of '__nc_error()'
libtirpc-1.3.7/src/getnetconfig.c:629:1: enter_function: entry to 'nc_sperror'
libtirpc-1.3.7/src/getnetconfig.c:633:12: call_function: calling '__nc_error' from 'nc_sperror'
libtirpc-1.3.7/src/getnetconfig.c:633:12: return_function: returning to 'nc_sperror' from '__nc_error'
libtirpc-1.3.7/src/getnetconfig.c:633:5: danger: '__nc_error()' leaks here; was allocated at [(6)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/5)
#  631|       const char *message;
#  632|   
#  633|->     switch(nc_error) {
#  634|       case NC_NONETCONFIG:
#  635|   	message = _nc_errors[0];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
libtirpc-1.3.7/src/getnetpath.c:89:36: warning[-Wanalyzer-malloc-leak]: leak of 'np_sessionp'
libtirpc-1.3.7/src/getnetpath.c:86:32: acquire_memory: allocated here
libtirpc-1.3.7/src/getnetpath.c:85:8: branch_false: following 'false' branch (when 'np_sessionp' is non-NULL)...
libtirpc-1.3.7/src/getnetpath.c:89:36: branch_false: ...to here
libtirpc-1.3.7/src/getnetpath.c:89:36: danger: 'np_sessionp' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   87|   	return (NULL);
#   88|       }
#   89|->     if ((np_sessionp->nc_handlep = setnetconfig()) == NULL) {
#   90|   	syslog (LOG_ERR, "rpc: failed to open " NETCONFIG);
#   91|   	free(np_sessionp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
libtirpc-1.3.7/src/getnetpath.c:90:9: warning[-Wanalyzer-malloc-leak]: leak of 'np_sessionp'
libtirpc-1.3.7/src/getnetpath.c:86:32: acquire_memory: allocated here
libtirpc-1.3.7/src/getnetpath.c:85:8: branch_false: following 'false' branch (when 'np_sessionp' is non-NULL)...
libtirpc-1.3.7/src/getnetpath.c:89:36: branch_false: ...to here
libtirpc-1.3.7/src/getnetpath.c:89:8: branch_true: following 'true' branch...
libtirpc-1.3.7/src/getnetpath.c:90:9: branch_true: ...to here
libtirpc-1.3.7/src/getnetpath.c:90:9: danger: 'np_sessionp' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   88|       }
#   89|       if ((np_sessionp->nc_handlep = setnetconfig()) == NULL) {
#   90|-> 	syslog (LOG_ERR, "rpc: failed to open " NETCONFIG);
#   91|   	free(np_sessionp);
#   92|   	return (NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
libtirpc-1.3.7/src/getnetpath.c:99:16: warning[-Wanalyzer-malloc-leak]: leak of 'np_sessionp'
libtirpc-1.3.7/src/getnetpath.c:86:32: acquire_memory: allocated here
libtirpc-1.3.7/src/getnetpath.c:85:8: branch_false: following 'false' branch (when 'np_sessionp' is non-NULL)...
libtirpc-1.3.7/src/getnetpath.c:89:36: branch_false: ...to here
libtirpc-1.3.7/src/getnetpath.c:89:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetpath.c:94:5: branch_false: ...to here
libtirpc-1.3.7/src/getnetpath.c:96:8: branch_false: following 'false' branch (when 'npp' is non-NULL)...
libtirpc-1.3.7/src/getnetpath.c:99:16: branch_false: ...to here
libtirpc-1.3.7/src/getnetpath.c:99:16: danger: 'np_sessionp' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   97|   	np_sessionp->netpath = NULL;
#   98|       } else {
#   99|-> 	(void) endnetconfig(np_sessionp->nc_handlep);/* won't need nc session*/
#  100|   	np_sessionp->nc_handlep = NULL;
#  101|   	if ((np_sessionp->netpath = malloc(strlen(npp)+1)) == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def160]
libtirpc-1.3.7/src/getnetpath.c:167:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'chainp'
libtirpc-1.3.7/src/getnetpath.c:132:1: enter_function: entry to 'getnetpath'
libtirpc-1.3.7/src/getnetpath.c:139:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetpath.c:143:8: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/getnetpath.c:159:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/getnetpath.c:160:32: call_function: calling '_get_next_token' from 'getnetpath'
libtirpc-1.3.7/src/getnetpath.c:160:32: return_function: returning to 'getnetpath' from '_get_next_token'
libtirpc-1.3.7/src/getnetpath.c:166:21: acquire_memory: this call could return NULL
libtirpc-1.3.7/src/getnetpath.c:167:13: danger: 'chainp' could be NULL: unchecked value from [(14)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/13)
#  165|   	    chainp = (struct netpath_chain *)	/* cobble alloc chain entry */
#  166|   		    malloc(sizeof (struct netpath_chain));
#  167|-> 	    chainp->ncp = ncp;
#  168|   	    chainp->nchain_next = NULL;
#  169|   	    if (np_sessionp->ncp_list == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
libtirpc-1.3.7/src/getnetpath.c:172:17: warning[-Wanalyzer-malloc-leak]: leak of 'chainp'
libtirpc-1.3.7/src/getnetpath.c:132:1: enter_function: entry to 'getnetpath'
libtirpc-1.3.7/src/getnetpath.c:139:8: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetpath.c:143:8: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/getnetpath.c:159:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/getnetpath.c:160:32: call_function: calling '_get_next_token' from 'getnetpath'
libtirpc-1.3.7/src/getnetpath.c:160:32: return_function: returning to 'getnetpath' from '_get_next_token'
libtirpc-1.3.7/src/getnetpath.c:166:21: acquire_memory: allocated here
libtirpc-1.3.7/src/getnetpath.c:169:16: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getnetpath.c:172:17: branch_false: ...to here
libtirpc-1.3.7/src/getnetpath.c:172:17: danger: 'chainp' leaks here; was allocated at [(14)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/13)
#  170|   		np_sessionp->ncp_list = chainp;
#  171|   	    } else {
#  172|-> 		np_sessionp->ncp_list->nchain_next = chainp;
#  173|   	    }
#  174|   	    return (ncp);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def162]
libtirpc-1.3.7/src/getpublickey.c:134:25: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen("/etc/publickey", "r")'
libtirpc-1.3.7/src/getpublickey.c:98:14: acquire_resource: opened here
libtirpc-1.3.7/src/getpublickey.c:99:12: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/getpublickey.c:103:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getpublickey.c:107:21: branch_false: ...to here
libtirpc-1.3.7/src/getpublickey.c:109:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/getpublickey.c:134:25: branch_true: ...to here
libtirpc-1.3.7/src/getpublickey.c:134:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/getpublickey.c:134:25: branch_true: ...to here
libtirpc-1.3.7/src/getpublickey.c:134:25: danger: 'fopen("/etc/publickey", "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  132|   			return (2);
#  133|   #else /* YP */
#  134|-> 			LIBTIRPC_DEBUG(1, 
#  135|   ("Bad record in %s '+' -- NIS not supported in this library copy\n", PKFILE));
#  136|   			continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
libtirpc-1.3.7/src/getpublickey.c:134:25: warning[-Wanalyzer-malloc-leak]: leak of 'fopen("/etc/publickey", "r")'
libtirpc-1.3.7/src/getpublickey.c:98:14: acquire_memory: allocated here
libtirpc-1.3.7/src/getpublickey.c:99:12: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/getpublickey.c:103:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/getpublickey.c:107:21: branch_false: ...to here
libtirpc-1.3.7/src/getpublickey.c:109:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/getpublickey.c:134:25: branch_true: ...to here
libtirpc-1.3.7/src/getpublickey.c:134:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/getpublickey.c:134:25: branch_true: ...to here
libtirpc-1.3.7/src/getpublickey.c:134:25: danger: 'fopen("/etc/publickey", "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  132|   			return (2);
#  133|   #else /* YP */
#  134|-> 			LIBTIRPC_DEBUG(1, 
#  135|   ("Bad record in %s '+' -- NIS not supported in this library copy\n", PKFILE));
#  136|   			continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
libtirpc-1.3.7/src/key_call.c:311:32: warning[-Wanalyzer-malloc-leak]: leak of 'kcp'
libtirpc-1.3.7/src/key_call.c:308:12: branch_true: following 'true' branch (when 'kcp' is NULL)...
libtirpc-1.3.7/src/key_call.c:309:50: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:309:50: acquire_memory: allocated here
libtirpc-1.3.7/src/key_call.c:310:20: branch_false: following 'false' branch (when 'kcp' is non-NULL)...
libtirpc-1.3.7/src/key_call.c:313:17: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:318:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:323:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:323:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:340:29: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:311:32: danger: 'kcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  309|   		kcp = (struct key_call_private *)malloc(sizeof (*kcp));
#  310|   		if (kcp == (struct key_call_private *)NULL) {
#  311|-> 			return ((CLIENT *) NULL);
#  312|   		}
#  313|                   thr_setspecific(key_call_key, (void *) kcp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
libtirpc-1.3.7/src/key_call.c:340:29: warning[-Wanalyzer-malloc-leak]: leak of 'kcp'
libtirpc-1.3.7/src/key_call.c:308:12: branch_true: following 'true' branch (when 'kcp' is NULL)...
libtirpc-1.3.7/src/key_call.c:309:50: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:309:50: acquire_memory: allocated here
libtirpc-1.3.7/src/key_call.c:310:20: branch_false: following 'false' branch (when 'kcp' is non-NULL)...
libtirpc-1.3.7/src/key_call.c:313:17: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:318:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:323:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:323:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:340:29: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:340:29: danger: 'kcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  338|   		return (kcp->client);
#  339|   	}
#  340|-> 	if (!(localhandle = setnetconfig())) {
#  341|   		return ((CLIENT *) NULL);
#  342|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
libtirpc-1.3.7/src/key_call.c:345:17: warning[-Wanalyzer-malloc-leak]: leak of 'kcp'
libtirpc-1.3.7/src/key_call.c:308:12: branch_true: following 'true' branch (when 'kcp' is NULL)...
libtirpc-1.3.7/src/key_call.c:309:50: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:309:50: acquire_memory: allocated here
libtirpc-1.3.7/src/key_call.c:310:20: branch_false: following 'false' branch (when 'kcp' is non-NULL)...
libtirpc-1.3.7/src/key_call.c:313:17: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:318:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:323:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:323:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:340:29: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:340:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:344:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:344:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:345:17: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:345:17: danger: 'kcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  343|           tpconf = NULL;
#  344|   	if (uname(&u) == -1) {
#  345|-> 		endnetconfig(localhandle);
#  346|   		return ((CLIENT *) NULL);
#  347|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
libtirpc-1.3.7/src/key_call.c:348:25: warning[-Wanalyzer-malloc-leak]: leak of 'kcp'
libtirpc-1.3.7/src/key_call.c:308:12: branch_true: following 'true' branch (when 'kcp' is NULL)...
libtirpc-1.3.7/src/key_call.c:309:50: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:309:50: acquire_memory: allocated here
libtirpc-1.3.7/src/key_call.c:310:20: branch_false: following 'false' branch (when 'kcp' is non-NULL)...
libtirpc-1.3.7/src/key_call.c:313:17: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:318:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:323:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:323:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:340:29: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:340:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:344:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:344:12: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:348:25: danger: 'kcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  346|   		return ((CLIENT *) NULL);
#  347|           }
#  348|-> 	while ((nconf = getnetconfig(localhandle)) != NULL) {
#  349|   		if (strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) {
#  350|   			/*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def168]
libtirpc-1.3.7/src/key_call.c:355:47: warning[-Wanalyzer-malloc-leak]: leak of 'kcp'
libtirpc-1.3.7/src/key_call.c:308:12: branch_true: following 'true' branch (when 'kcp' is NULL)...
libtirpc-1.3.7/src/key_call.c:309:50: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:309:50: acquire_memory: allocated here
libtirpc-1.3.7/src/key_call.c:310:20: branch_false: following 'false' branch (when 'kcp' is non-NULL)...
libtirpc-1.3.7/src/key_call.c:313:17: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:318:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:323:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:323:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:340:29: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:340:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:344:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:344:12: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:348:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:349:28: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:354:28: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:355:47: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:355:47: danger: 'kcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  353|   			 */
#  354|   			if (nconf->nc_semantics == NC_TPI_COTS_ORD) {
#  355|-> 				kcp->client = clnt_tp_create(u.nodename,
#  356|   					KEY_PROG, vers, nconf);
#  357|   				if (kcp->client)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
libtirpc-1.3.7/src/key_call.c:368:9: warning[-Wanalyzer-malloc-leak]: leak of 'kcp'
libtirpc-1.3.7/src/key_call.c:308:12: branch_true: following 'true' branch (when 'kcp' is NULL)...
libtirpc-1.3.7/src/key_call.c:309:50: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:309:50: acquire_memory: allocated here
libtirpc-1.3.7/src/key_call.c:310:20: branch_false: following 'false' branch (when 'kcp' is non-NULL)...
libtirpc-1.3.7/src/key_call.c:313:17: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:318:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:323:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:323:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:340:29: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:340:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:344:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:344:12: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:364:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:364:13: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:364:13: branch_false: following 'false' branch (when 'tpconf' is NULL)...
libtirpc-1.3.7/src/key_call.c:368:9: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:368:9: danger: 'kcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  366|   		kcp->client = clnt_tp_create(u.nodename,
#  367|   			KEY_PROG, vers, tpconf);
#  368|-> 	endnetconfig(localhandle);
#  369|   
#  370|   	if (kcp->client == (CLIENT *) NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
libtirpc-1.3.7/src/key_call.c:375:32: warning[-Wanalyzer-malloc-leak]: leak of 'kcp'
libtirpc-1.3.7/src/key_call.c:308:12: branch_true: following 'true' branch (when 'kcp' is NULL)...
libtirpc-1.3.7/src/key_call.c:309:50: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:309:50: acquire_memory: allocated here
libtirpc-1.3.7/src/key_call.c:310:20: branch_false: following 'false' branch (when 'kcp' is non-NULL)...
libtirpc-1.3.7/src/key_call.c:313:17: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:318:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:323:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:323:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:340:29: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:340:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:344:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:344:12: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:348:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:349:28: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:354:28: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:355:47: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:357:36: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:364:14: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:364:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:368:9: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:370:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:373:20: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:375:32: danger: 'kcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  373|   	kcp->uid = geteuid();
#  374|   	kcp->pid = getpid();
#  375|-> 	kcp->client->cl_auth = authsys_create("", kcp->uid, 0, 0, NULL);
#  376|   	if (kcp->client->cl_auth == NULL) {
#  377|   		clnt_destroy(kcp->client);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
libtirpc-1.3.7/src/key_call.c:377:17: warning[-Wanalyzer-malloc-leak]: leak of 'kcp'
libtirpc-1.3.7/src/key_call.c:308:12: branch_true: following 'true' branch (when 'kcp' is NULL)...
libtirpc-1.3.7/src/key_call.c:309:50: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:309:50: acquire_memory: allocated here
libtirpc-1.3.7/src/key_call.c:310:20: branch_false: following 'false' branch (when 'kcp' is non-NULL)...
libtirpc-1.3.7/src/key_call.c:313:17: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:318:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:323:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:323:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:340:29: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:340:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:344:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:344:12: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:348:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:349:28: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:354:28: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:355:47: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:357:36: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:364:14: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:364:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:368:9: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:370:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:373:20: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:376:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:377:17: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:377:17: danger: 'kcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  375|   	kcp->client->cl_auth = authsys_create("", kcp->uid, 0, 0, NULL);
#  376|   	if (kcp->client->cl_auth == NULL) {
#  377|-> 		clnt_destroy(kcp->client);
#  378|   		kcp->client = NULL;
#  379|   		return ((CLIENT *) NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
libtirpc-1.3.7/src/key_call.c:384:16: warning[-Wanalyzer-malloc-leak]: leak of 'kcp'
libtirpc-1.3.7/src/key_call.c:308:12: branch_true: following 'true' branch (when 'kcp' is NULL)...
libtirpc-1.3.7/src/key_call.c:309:50: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:309:50: acquire_memory: allocated here
libtirpc-1.3.7/src/key_call.c:310:20: branch_false: following 'false' branch (when 'kcp' is non-NULL)...
libtirpc-1.3.7/src/key_call.c:313:17: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:318:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:323:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:323:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:340:29: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:340:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:344:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:344:12: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:348:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:349:28: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:354:28: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:355:47: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:357:36: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:364:14: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:364:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:368:9: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:370:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:373:20: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:376:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:382:9: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:384:16: danger: 'kcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  382|   	wait_time.tv_sec = TOTAL_TIMEOUT/TOTAL_TRIES;
#  383|   	wait_time.tv_usec = 0;
#  384|-> 	(void) clnt_control(kcp->client, CLSET_RETRY_TIMEOUT,
#  385|   		(char *)&wait_time);
#  386|   	if (clnt_control(kcp->client, CLGET_FD, (char *)&fd))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
libtirpc-1.3.7/src/key_call.c:386:13: warning[-Wanalyzer-malloc-leak]: leak of 'kcp'
libtirpc-1.3.7/src/key_call.c:308:12: branch_true: following 'true' branch (when 'kcp' is NULL)...
libtirpc-1.3.7/src/key_call.c:309:50: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:309:50: acquire_memory: allocated here
libtirpc-1.3.7/src/key_call.c:310:20: branch_false: following 'false' branch (when 'kcp' is non-NULL)...
libtirpc-1.3.7/src/key_call.c:313:17: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:318:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:323:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:323:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:340:29: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:340:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:344:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:344:12: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:348:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:349:28: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:354:28: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:355:47: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:357:36: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:364:14: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:364:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:368:9: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:370:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:373:20: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:376:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:382:9: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:386:13: danger: 'kcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  384|   	(void) clnt_control(kcp->client, CLSET_RETRY_TIMEOUT,
#  385|   		(char *)&wait_time);
#  386|-> 	if (clnt_control(kcp->client, CLGET_FD, (char *)&fd))
#  387|   		fcntl(fd, F_SETFD, 1);	/* make it "close on exec" */
#  388|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
libtirpc-1.3.7/src/key_call.c:387:17: warning[-Wanalyzer-malloc-leak]: leak of 'kcp'
libtirpc-1.3.7/src/key_call.c:308:12: branch_true: following 'true' branch (when 'kcp' is NULL)...
libtirpc-1.3.7/src/key_call.c:309:50: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:309:50: acquire_memory: allocated here
libtirpc-1.3.7/src/key_call.c:310:20: branch_false: following 'false' branch (when 'kcp' is non-NULL)...
libtirpc-1.3.7/src/key_call.c:313:17: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:318:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:323:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:323:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:340:29: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:340:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:344:13: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:344:12: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:348:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:349:28: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:354:28: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:355:47: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:357:36: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:364:14: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:364:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:368:9: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:370:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:373:20: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:376:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/key_call.c:382:9: branch_false: ...to here
libtirpc-1.3.7/src/key_call.c:386:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/key_call.c:387:17: branch_true: ...to here
libtirpc-1.3.7/src/key_call.c:387:17: danger: 'kcp' leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
#  385|   		(char *)&wait_time);
#  386|   	if (clnt_control(kcp->client, CLGET_FD, (char *)&fd))
#  387|-> 		fcntl(fd, F_SETFD, 1);	/* make it "close on exec" */
#  388|   
#  389|   	return (kcp->client);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def175]
libtirpc-1.3.7/src/netnamer.c:295:25: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(NETIDFILE, "r")'
libtirpc-1.3.7/src/netnamer.c:255:14: acquire_resource: opened here
libtirpc-1.3.7/src/netnamer.c:256:12: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/netnamer.c:268:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/netnamer.c:272:21: branch_false: ...to here
libtirpc-1.3.7/src/netnamer.c:274:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/netnamer.c:295:25: branch_true: ...to here
libtirpc-1.3.7/src/netnamer.c:295:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/netnamer.c:295:25: branch_true: ...to here
libtirpc-1.3.7/src/netnamer.c:295:25: danger: 'fopen(NETIDFILE, "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  293|   			return (2);
#  294|   #else	/* YP */
#  295|-> 			LIBTIRPC_DEBUG(1,
#  296|   ("Bad record in %s '+' -- NIS not supported in this library copy\n",
#  297|   				NETIDFILE));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
libtirpc-1.3.7/src/netnamer.c:295:25: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(NETIDFILE, "r")'
libtirpc-1.3.7/src/netnamer.c:255:14: acquire_memory: allocated here
libtirpc-1.3.7/src/netnamer.c:256:12: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/netnamer.c:268:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/netnamer.c:272:21: branch_false: ...to here
libtirpc-1.3.7/src/netnamer.c:274:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/netnamer.c:295:25: branch_true: ...to here
libtirpc-1.3.7/src/netnamer.c:295:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/netnamer.c:295:25: branch_true: ...to here
libtirpc-1.3.7/src/netnamer.c:295:25: danger: 'fopen(NETIDFILE, "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  293|   			return (2);
#  294|   #else	/* YP */
#  295|-> 			LIBTIRPC_DEBUG(1,
#  296|   ("Bad record in %s '+' -- NIS not supported in this library copy\n",
#  297|   				NETIDFILE));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
libtirpc-1.3.7/src/rpc_generic.c:251:33: warning[-Wanalyzer-malloc-leak]: leak of 'netid_tcp'
libtirpc-1.3.7/src/rpc_generic.c:243:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/rpc_generic.c:247:38: branch_true: ...to here
libtirpc-1.3.7/src/rpc_generic.c:247:20: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/rpc_generic.c:251:24: branch_true: following 'true' branch...
libtirpc-1.3.7/src/rpc_generic.c:252:36: branch_true: ...to here
libtirpc-1.3.7/src/rpc_generic.c:253:37: branch_true: following 'true' branch (when 'netid_tcp' is NULL)...
libtirpc-1.3.7/src/rpc_generic.c:255:60: branch_true: ...to here
libtirpc-1.3.7/src/rpc_generic.c:255:53: acquire_memory: allocated here
libtirpc-1.3.7/src/rpc_generic.c:251:33: danger: 'netid_tcp' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  249|   			return (NULL);
#  250|   		}
#  251|-> 		while ((nconf = getnetconfig(confighandle)) != NULL) {
#  252|   			if (strcmp(nconf->nc_protofmly, NC_INET) == 0) {
#  253|   				if (strcmp(nconf->nc_proto, NC_TCP) == 0 &&

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
libtirpc-1.3.7/src/rpc_generic.c:267:17: warning[-Wanalyzer-malloc-leak]: leak of 'netid_tcp'
libtirpc-1.3.7/src/rpc_generic.c:243:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/rpc_generic.c:247:38: branch_true: ...to here
libtirpc-1.3.7/src/rpc_generic.c:247:20: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/rpc_generic.c:251:24: branch_true: following 'true' branch...
libtirpc-1.3.7/src/rpc_generic.c:252:36: branch_true: ...to here
libtirpc-1.3.7/src/rpc_generic.c:253:37: branch_true: following 'true' branch (when 'netid_tcp' is NULL)...
libtirpc-1.3.7/src/rpc_generic.c:255:60: branch_true: ...to here
libtirpc-1.3.7/src/rpc_generic.c:255:53: acquire_memory: allocated here
libtirpc-1.3.7/src/rpc_generic.c:251:24: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_generic.c:267:17: branch_false: ...to here
libtirpc-1.3.7/src/rpc_generic.c:267:17: danger: 'netid_tcp' leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  265|   			}
#  266|   		}
#  267|-> 		endnetconfig(confighandle);
#  268|   	}
#  269|   	if (strcmp(nettype, "udp") == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
libtirpc-1.3.7/src/rpc_generic.c:267:17: warning[-Wanalyzer-malloc-leak]: leak of 'netid_udp'
libtirpc-1.3.7/src/rpc_generic.c:243:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/rpc_generic.c:247:38: branch_true: ...to here
libtirpc-1.3.7/src/rpc_generic.c:247:20: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/rpc_generic.c:251:24: branch_true: following 'true' branch...
libtirpc-1.3.7/src/rpc_generic.c:252:36: branch_true: ...to here
libtirpc-1.3.7/src/rpc_generic.c:253:36: branch_false: following 'false' branch (when the strings are non-equal)...
libtirpc-1.3.7/src/rpc_generic.c:259:37: branch_false: ...to here
libtirpc-1.3.7/src/rpc_generic.c:259:37: branch_true: following 'true' branch (when 'netid_udp' is NULL)...
libtirpc-1.3.7/src/rpc_generic.c:261:60: branch_true: ...to here
libtirpc-1.3.7/src/rpc_generic.c:261:53: acquire_memory: allocated here
libtirpc-1.3.7/src/rpc_generic.c:251:24: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_generic.c:267:17: branch_false: ...to here
libtirpc-1.3.7/src/rpc_generic.c:267:17: danger: 'netid_udp' leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
#  265|   			}
#  266|   		}
#  267|-> 		endnetconfig(confighandle);
#  268|   	}
#  269|   	if (strcmp(nettype, "udp") == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
libtirpc-1.3.7/src/rpc_generic.c:276:12: warning[-Wanalyzer-malloc-leak]: leak of 'netid_tcp'
libtirpc-1.3.7/src/rpc_generic.c:243:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/rpc_generic.c:247:38: branch_true: ...to here
libtirpc-1.3.7/src/rpc_generic.c:247:20: branch_false: following 'false' branch...
 branch_false: ...to here
libtirpc-1.3.7/src/rpc_generic.c:251:24: branch_true: following 'true' branch...
libtirpc-1.3.7/src/rpc_generic.c:252:36: branch_true: ...to here
libtirpc-1.3.7/src/rpc_generic.c:253:37: branch_true: following 'true' branch (when 'netid_tcp' is NULL)...
libtirpc-1.3.7/src/rpc_generic.c:255:60: branch_true: ...to here
libtirpc-1.3.7/src/rpc_generic.c:255:53: acquire_memory: allocated here
libtirpc-1.3.7/src/rpc_generic.c:251:24: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_generic.c:267:17: branch_false: ...to here
libtirpc-1.3.7/src/rpc_generic.c:276:12: branch_true: following 'true' branch (when 'netid' is NULL)...
 branch_true: ...to here
libtirpc-1.3.7/src/rpc_generic.c:276:12: danger: 'netid_tcp' leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  274|   		return (NULL);
#  275|   	}
#  276|-> 	if ((netid == NULL) || (netid[0] == 0)) {
#  277|   		return (NULL);
#  278|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
libtirpc-1.3.7/src/rpc_generic.c:300:41: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
libtirpc-1.3.7/src/rpc_generic.c:292:36: acquire_memory: allocated here
libtirpc-1.3.7/src/rpc_generic.c:293:12: branch_false: following 'false' branch (when 'handle' is non-NULL)...
libtirpc-1.3.7/src/rpc_generic.c:296:35: branch_false: ...to here
libtirpc-1.3.7/src/rpc_generic.c:300:41: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  298|   	case _RPC_CIRCUIT_N:
#  299|   	case _RPC_DATAGRAM_N:
#  300|-> 		if (!(handle->nhandle = setnetpath())) {
#  301|   			free(handle);
#  302|   			return (NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def182]
libtirpc-1.3.7/src/rpc_generic.c:311:41: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
libtirpc-1.3.7/src/rpc_generic.c:288:1: enter_function: entry to '__rpc_setconf'
libtirpc-1.3.7/src/rpc_generic.c:292:36: acquire_memory: allocated here
libtirpc-1.3.7/src/rpc_generic.c:293:12: branch_false: following 'false' branch (when 'handle' is non-NULL)...
libtirpc-1.3.7/src/rpc_generic.c:296:35: branch_false: ...to here
libtirpc-1.3.7/src/rpc_generic.c:296:35: call_function: calling 'getnettype' from '__rpc_setconf'
libtirpc-1.3.7/src/rpc_generic.c:296:35: return_function: returning to '__rpc_setconf' from 'getnettype'
libtirpc-1.3.7/src/rpc_generic.c:311:41: danger: 'handle' leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
#  309|   	case _RPC_TCP:
#  310|   	case _RPC_UDP:
#  311|-> 		if (!(handle->nhandle = setnetconfig())) {
#  312|   		        syslog (LOG_ERR, "rpc: failed to open " NETCONFIG);
#  313|   			free(handle);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
libtirpc-1.3.7/src/rpc_generic.c:312:25: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
libtirpc-1.3.7/src/rpc_generic.c:288:1: enter_function: entry to '__rpc_setconf'
libtirpc-1.3.7/src/rpc_generic.c:292:36: acquire_memory: allocated here
libtirpc-1.3.7/src/rpc_generic.c:293:12: branch_false: following 'false' branch (when 'handle' is non-NULL)...
libtirpc-1.3.7/src/rpc_generic.c:296:35: branch_false: ...to here
libtirpc-1.3.7/src/rpc_generic.c:296:35: call_function: calling 'getnettype' from '__rpc_setconf'
libtirpc-1.3.7/src/rpc_generic.c:296:35: return_function: returning to '__rpc_setconf' from 'getnettype'
libtirpc-1.3.7/src/rpc_generic.c:311:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/rpc_generic.c:312:25: branch_true: ...to here
libtirpc-1.3.7/src/rpc_generic.c:312:25: danger: 'handle' leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
#  310|   	case _RPC_UDP:
#  311|   		if (!(handle->nhandle = setnetconfig())) {
#  312|-> 		        syslog (LOG_ERR, "rpc: failed to open " NETCONFIG);
#  313|   			free(handle);
#  314|   			return (NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
libtirpc-1.3.7/src/rpc_gss_utils.c:54:13: warning[-Wanalyzer-malloc-leak]: leak of '__rpc_gss_error()'
libtirpc-1.3.7/src/rpc_gss_utils.c:372:1: enter_function: entry to 'rpc_gss_oid_to_mech'
libtirpc-1.3.7/src/rpc_gss_utils.c:376:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/rpc_gss_utils.c:377:17: call_function: inlined call to 'rpc_gss_set_error' from 'rpc_gss_oid_to_mech'
libtirpc-1.3.7/src/rpc_gss_utils.c:377:17: call_function: inlined call to 'rpc_gss_set_error' from 'rpc_gss_oid_to_mech'
libtirpc-1.3.7/src/rpc_gss_utils.c:54:13: danger: '__rpc_gss_error()' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#   52|   	rpc_gss_error_t *result;
#   53|   
#   54|-> 	if (rg_key == KEY_INITIALIZER) {
#   55|   		static mutex_t _rpc_gss_error_lock = MUTEX_INITIALIZER;
#   56|   		int err = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
libtirpc-1.3.7/src/rpc_gss_utils.c:109:1: warning[-Wanalyzer-malloc-leak]: leak of '__rpc_gss_error()'
libtirpc-1.3.7/src/rpc_gss_utils.c:442:1: enter_function: entry to 'rpc_gss_num_to_qop'
libtirpc-1.3.7/src/rpc_gss_utils.c:447:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/rpc_gss_utils.c:448:17: branch_true: ...to here
libtirpc-1.3.7/src/rpc_gss_utils.c:448:17: call_function: calling 'rpc_gss_set_error' from 'rpc_gss_num_to_qop'
#  107|   	error->rpc_gss_error = RPC_GSS_ER_SYSTEMERROR;
#  108|   	error->system_error = system_error;
#  109|-> }
#  110|   
#  111|   /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
libtirpc-1.3.7/src/rpc_gss_utils.c:121:1: warning[-Wanalyzer-malloc-leak]: leak of '__rpc_gss_error()'
libtirpc-1.3.7/src/rpc_gss_utils.c:315:1: enter_function: entry to 'rpc_gss_is_installed'
libtirpc-1.3.7/src/rpc_gss_utils.c:319:12: branch_false: following 'false' branch (when 'mechanism' is non-NULL)...
libtirpc-1.3.7/src/rpc_gss_utils.c:324:9: branch_false: ...to here
libtirpc-1.3.7/src/rpc_gss_utils.c:324:9: call_function: calling 'rpc_gss_clear_error' from 'rpc_gss_is_installed'
#  119|   	error->rpc_gss_error = RPC_GSS_ER_SUCCESS;
#  120|   	error->system_error = 0;
#  121|-> }
#  122|   
#  123|   /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
libtirpc-1.3.7/src/rpc_gss_utils.c:251:16: warning[-Wanalyzer-malloc-leak]: leak of '__rpc_gss_error()'
libtirpc-1.3.7/src/rpc_gss_utils.c:248:1: enter_function: entry to 'rpc_gss_get_mechanisms'
libtirpc-1.3.7/src/rpc_gss_utils.c:250:9: call_function: inlined call to 'rpc_gss_clear_error' from 'rpc_gss_get_mechanisms'
libtirpc-1.3.7/src/rpc_gss_utils.c:250:9: call_function: inlined call to 'rpc_gss_clear_error' from 'rpc_gss_get_mechanisms'
libtirpc-1.3.7/src/rpc_gss_utils.c:251:16: danger: '__rpc_gss_error()' leaks here; was allocated at [(7)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/6)
#  249|   {
#  250|   	rpc_gss_clear_error();
#  251|-> 	return (char **)_rpc_gss_mechanism_names;
#  252|   }
#  253|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
libtirpc-1.3.7/src/rpc_gss_utils.c:281:9: warning[-Wanalyzer-malloc-leak]: leak of '__rpc_gss_error()'
libtirpc-1.3.7/src/rpc_gss_utils.c:265:1: enter_function: entry to 'rpc_gss_get_mech_info'
libtirpc-1.3.7/src/rpc_gss_utils.c:269:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_gss_utils.c:274:13: branch_false: ...to here
libtirpc-1.3.7/src/rpc_gss_utils.c:274:13: call_function: calling '_rpc_gss_find_mechanism' from 'rpc_gss_get_mech_info'
libtirpc-1.3.7/src/rpc_gss_utils.c:274:13: return_function: returning to 'rpc_gss_get_mech_info' from '_rpc_gss_find_mechanism'
libtirpc-1.3.7/src/rpc_gss_utils.c:275:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_gss_utils.c:280:9: call_function: inlined call to 'rpc_gss_clear_error' from 'rpc_gss_get_mech_info'
libtirpc-1.3.7/src/rpc_gss_utils.c:280:9: call_function: inlined call to 'rpc_gss_clear_error' from 'rpc_gss_get_mech_info'
libtirpc-1.3.7/src/rpc_gss_utils.c:281:9: danger: '__rpc_gss_error()' leaks here; was allocated at [(16)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/15)
#  279|   
#  280|   	rpc_gss_clear_error();
#  281|-> 	*dummy = rpcsec_gss_svc_privacy;
#  282|   	return (char **)m->mi_qop_names;
#  283|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
libtirpc-1.3.7/src/rpc_gss_utils.c:302:17: warning[-Wanalyzer-malloc-leak]: leak of '__rpc_gss_error()'
libtirpc-1.3.7/src/rpc_gss_utils.c:294:1: enter_function: entry to 'rpc_gss_get_versions'
libtirpc-1.3.7/src/rpc_gss_utils.c:296:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_gss_utils.c:301:9: call_function: inlined call to 'rpc_gss_clear_error' from 'rpc_gss_get_versions'
libtirpc-1.3.7/src/rpc_gss_utils.c:301:9: call_function: inlined call to 'rpc_gss_clear_error' from 'rpc_gss_get_versions'
libtirpc-1.3.7/src/rpc_gss_utils.c:302:17: danger: '__rpc_gss_error()' leaks here; was allocated at [(9)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/8)
#  300|   
#  301|   	rpc_gss_clear_error();
#  302|-> 	*high = *low = RPCSEC_GSS_VERSION;
#  303|   	return TRUE;
#  304|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
libtirpc-1.3.7/src/rpc_gss_utils.c:325:13: warning[-Wanalyzer-malloc-leak]: leak of '__rpc_gss_error()'
libtirpc-1.3.7/src/rpc_gss_utils.c:315:1: enter_function: entry to 'rpc_gss_is_installed'
libtirpc-1.3.7/src/rpc_gss_utils.c:319:12: branch_false: following 'false' branch (when 'mechanism' is non-NULL)...
libtirpc-1.3.7/src/rpc_gss_utils.c:324:9: call_function: inlined call to 'rpc_gss_clear_error' from 'rpc_gss_is_installed'
libtirpc-1.3.7/src/rpc_gss_utils.c:324:9: call_function: inlined call to 'rpc_gss_clear_error' from 'rpc_gss_is_installed'
libtirpc-1.3.7/src/rpc_gss_utils.c:325:13: danger: '__rpc_gss_error()' leaks here; was allocated at [(9)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/8)
#  323|   
#  324|   	rpc_gss_clear_error();
#  325|-> 	m = _rpc_gss_find_mechanism(mechanism);
#  326|   	if (m == NULL)
#  327|   		return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def191]
libtirpc-1.3.7/src/rpc_soc.c:710:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor '__rpc_nconf2fd(<unknown>)'
libtirpc-1.3.7/src/rpc_soc.c:694:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/rpc_soc.c:695:21: branch_true: ...to here
libtirpc-1.3.7/src/rpc_soc.c:699:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_soc.c:704:21: branch_false: ...to here
libtirpc-1.3.7/src/rpc_soc.c:704:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_soc.c:707:9: branch_false: ...to here
libtirpc-1.3.7/src/rpc_soc.c:717:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_soc.c:720:26: branch_false: ...to here
libtirpc-1.3.7/src/rpc_soc.c:722:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_soc.c:724:9: branch_false: ...to here
libtirpc-1.3.7/src/rpc_soc.c:726:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/rpc_soc.c:727:21: branch_true: ...to here
libtirpc-1.3.7/src/rpc_soc.c:710:13: danger: '__rpc_nconf2fd(<unknown>)' leaks here
#  708|   	sun.sun_family = AF_LOCAL;
#  709|   	strncpy(sun.sun_path, path, (sizeof(sun.sun_path)-1));
#  710|-> 	if (sun.sun_path[0] == '@')
#  711|   		/* abstract address */
#  712|   		sun.sun_path[0] = '\0';

Error: GCC_ANALYZER_WARNING (CWE-775): [#def192]
libtirpc-1.3.7/src/rpc_soc.c:733:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor '__rpc_nconf2fd(<unknown>)'
libtirpc-1.3.7/src/rpc_soc.c:694:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/rpc_soc.c:695:21: branch_true: ...to here
libtirpc-1.3.7/src/rpc_soc.c:699:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_soc.c:704:21: branch_false: ...to here
libtirpc-1.3.7/src/rpc_soc.c:704:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_soc.c:707:9: branch_false: ...to here
libtirpc-1.3.7/src/rpc_soc.c:717:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_soc.c:720:26: branch_false: ...to here
libtirpc-1.3.7/src/rpc_soc.c:722:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_soc.c:724:9: branch_false: ...to here
libtirpc-1.3.7/src/rpc_soc.c:726:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/rpc_soc.c:727:21: branch_true: ...to here
libtirpc-1.3.7/src/rpc_soc.c:727:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_soc.c:733:16: branch_false: ...to here
libtirpc-1.3.7/src/rpc_soc.c:733:16: danger: '__rpc_nconf2fd(<unknown>)' leaks here
#  731|   	}
#  732|   
#  733|-> 	xprt = (SVCXPRT *)svc_tli_create(sock, nconf, &taddr, sendsize, recvsize);
#  734|   	if (xprt == NULL)
#  735|   		close(sock);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
libtirpc-1.3.7/src/rpc_soc.c:733:16: warning[-Wanalyzer-malloc-leak]: leak of 'taddr.addr.buf'
libtirpc-1.3.7/src/rpc_soc.c:694:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/rpc_soc.c:695:21: branch_true: ...to here
libtirpc-1.3.7/src/rpc_soc.c:699:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_soc.c:704:21: branch_false: ...to here
libtirpc-1.3.7/src/rpc_soc.c:704:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_soc.c:707:9: branch_false: ...to here
libtirpc-1.3.7/src/rpc_soc.c:717:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_soc.c:720:26: branch_false: ...to here
libtirpc-1.3.7/src/rpc_soc.c:721:26: acquire_memory: allocated here
libtirpc-1.3.7/src/rpc_soc.c:722:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_soc.c:724:9: branch_false: ...to here
libtirpc-1.3.7/src/rpc_soc.c:726:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpc_soc.c:733:16: branch_false: ...to here
libtirpc-1.3.7/src/rpc_soc.c:733:16: danger: 'taddr.addr.buf' leaks here; was allocated at [(10)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/9)
#  731|   	}
#  732|   
#  733|-> 	xprt = (SVCXPRT *)svc_tli_create(sock, nconf, &taddr, sendsize, recvsize);
#  734|   	if (xprt == NULL)
#  735|   		close(sock);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def194]
libtirpc-1.3.7/src/rpcb_clnt.c:259:61: warning[-Wanalyzer-null-dereference]: dereference of NULL 'addr'
libtirpc-1.3.7/src/rpcb_clnt.c:1376:1: enter_function: entry to 'rpcb_uaddr2taddr'
libtirpc-1.3.7/src/rpcb_clnt.c:1385:12: branch_false: following 'false' branch (when 'nconf' is non-NULL)...
libtirpc-1.3.7/src/rpcb_clnt.c:1389:13: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1389:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: call_function: calling 'local_rpcb' from 'rpcb_uaddr2taddr'
#  257|   
#  258|   	for (cptr = front; cptr != NULL; cptr = cptr->ac_next) {
#  259|-> 		if (!memcmp(cptr->ac_taddr->buf, addr->buf, addr->len)) {
#  260|   			/* Unlink from cache. We'll destroy it after releasing the mutex. */
#  261|   			if (cptr->ac_uaddr) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
libtirpc-1.3.7/src/rpcb_clnt.c:306:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libtirpc-1.3.7/src/rpcb_clnt.c:1376:1: enter_function: entry to 'rpcb_uaddr2taddr'
libtirpc-1.3.7/src/rpcb_clnt.c:1385:12: branch_false: following 'false' branch (when 'nconf' is non-NULL)...
libtirpc-1.3.7/src/rpcb_clnt.c:1389:13: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1389:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: call_function: calling 'local_rpcb' from 'rpcb_uaddr2taddr'
#  304|   		goto out_free;
#  305|   	memcpy(ad_cache->ac_taddr->buf, taddr->buf, taddr->len);
#  306|-> 	LIBTIRPC_DEBUG(3, ("add_cache: Added to cache: %s : %s\n", host, netid));
#  307|   
#  308|   /* VARIABLES PROTECTED BY rpcbaddr_cache_lock:  cptr */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def196]
libtirpc-1.3.7/src/rpcb_clnt.c:306:9: warning[-Wanalyzer-malloc-leak]: leak of 'ad_cache'
libtirpc-1.3.7/src/rpcb_clnt.c:1376:1: enter_function: entry to 'rpcb_uaddr2taddr'
libtirpc-1.3.7/src/rpcb_clnt.c:1385:12: branch_false: following 'false' branch (when 'nconf' is non-NULL)...
libtirpc-1.3.7/src/rpcb_clnt.c:1389:13: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1389:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: call_function: calling 'local_rpcb' from 'rpcb_uaddr2taddr'
#  304|   		goto out_free;
#  305|   	memcpy(ad_cache->ac_taddr->buf, taddr->buf, taddr->len);
#  306|-> 	LIBTIRPC_DEBUG(3, ("add_cache: Added to cache: %s : %s\n", host, netid));
#  307|   
#  308|   /* VARIABLES PROTECTED BY rpcbaddr_cache_lock:  cptr */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
libtirpc-1.3.7/src/rpcb_clnt.c:324:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libtirpc-1.3.7/src/rpcb_clnt.c:1376:1: enter_function: entry to 'rpcb_uaddr2taddr'
libtirpc-1.3.7/src/rpcb_clnt.c:1385:12: branch_false: following 'false' branch (when 'nconf' is non-NULL)...
libtirpc-1.3.7/src/rpcb_clnt.c:1389:13: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1389:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: call_function: calling 'local_rpcb' from 'rpcb_uaddr2taddr'
#  322|   		}
#  323|   
#  324|-> 		LIBTIRPC_DEBUG(3, ("add_cache: Deleted from cache: %s : %s\n",
#  325|   			cptr->ac_host, cptr->ac_netid));
#  326|   		free(cptr->ac_host);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
libtirpc-1.3.7/src/rpcb_clnt.c:324:17: warning[-Wanalyzer-malloc-leak]: leak of 'ad_cache'
libtirpc-1.3.7/src/rpcb_clnt.c:1376:1: enter_function: entry to 'rpcb_uaddr2taddr'
libtirpc-1.3.7/src/rpcb_clnt.c:1385:12: branch_false: following 'false' branch (when 'nconf' is non-NULL)...
libtirpc-1.3.7/src/rpcb_clnt.c:1389:13: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1389:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: call_function: calling 'local_rpcb' from 'rpcb_uaddr2taddr'
#  322|   		}
#  323|   
#  324|-> 		LIBTIRPC_DEBUG(3, ("add_cache: Deleted from cache: %s : %s\n",
#  325|   			cptr->ac_host, cptr->ac_netid));
#  326|   		free(cptr->ac_host);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
libtirpc-1.3.7/src/rpcb_clnt.c:399:34: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libtirpc-1.3.7/src/rpcb_clnt.c:1376:1: enter_function: entry to 'rpcb_uaddr2taddr'
libtirpc-1.3.7/src/rpcb_clnt.c:1385:12: branch_false: following 'false' branch (when 'nconf' is non-NULL)...
libtirpc-1.3.7/src/rpcb_clnt.c:1389:13: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1389:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: call_function: calling 'local_rpcb' from 'rpcb_uaddr2taddr'
#  397|   		ad_cache = copy_of_cached(host, nconf->nc_netid);
#  398|   		if (ad_cache != NULL) {
#  399|-> 			client = clnt_tli_create(RPC_ANYFD, nconf, ad_cache->ac_taddr,
#  400|   							(rpcprog_t)RPCBPROG, (rpcvers_t)RPCBVERS4, 0, 0);
#  401|   			if (client != NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
libtirpc-1.3.7/src/rpcb_clnt.c:399:34: warning[-Wanalyzer-malloc-leak]: leak of 'copy_of_cached(host, *nconf.nc_netid)'
libtirpc-1.3.7/src/rpcb_clnt.c:1376:1: enter_function: entry to 'rpcb_uaddr2taddr'
libtirpc-1.3.7/src/rpcb_clnt.c:1385:12: branch_false: following 'false' branch (when 'nconf' is non-NULL)...
libtirpc-1.3.7/src/rpcb_clnt.c:1389:13: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1389:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: call_function: calling 'local_rpcb' from 'rpcb_uaddr2taddr'
#  397|   		ad_cache = copy_of_cached(host, nconf->nc_netid);
#  398|   		if (ad_cache != NULL) {
#  399|-> 			client = clnt_tli_create(RPC_ANYFD, nconf, ad_cache->ac_taddr,
#  400|   							(rpcprog_t)RPCBPROG, (rpcvers_t)RPCBVERS4, 0, 0);
#  401|   			if (client != NULL) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def201]
libtirpc-1.3.7/src/rpcb_clnt.c:572:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'sock'
libtirpc-1.3.7/src/rpcb_clnt.c:1376:1: enter_function: entry to 'rpcb_uaddr2taddr'
libtirpc-1.3.7/src/rpcb_clnt.c:1385:12: branch_false: following 'false' branch (when 'nconf' is non-NULL)...
libtirpc-1.3.7/src/rpcb_clnt.c:1389:13: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1389:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: call_function: calling 'local_rpcb' from 'rpcb_uaddr2taddr'
#  570|   		nbuf.buf = &sun;
#  571|   
#  572|-> 		tsize = __rpc_get_t_size(AF_LOCAL, 0, 0);
#  573|   		client = clnt_vc_create(sock, &nbuf, (rpcprog_t)RPCBPROG,
#  574|   					(rpcvers_t)RPCBVERS, tsize, tsize);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def202]
libtirpc-1.3.7/src/rpcb_clnt.c:573:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'sock'
libtirpc-1.3.7/src/rpcb_clnt.c:1376:1: enter_function: entry to 'rpcb_uaddr2taddr'
libtirpc-1.3.7/src/rpcb_clnt.c:1385:12: branch_false: following 'false' branch (when 'nconf' is non-NULL)...
libtirpc-1.3.7/src/rpcb_clnt.c:1389:13: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1389:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: branch_false: ...to here
libtirpc-1.3.7/src/rpcb_clnt.c:1393:18: call_function: calling 'local_rpcb' from 'rpcb_uaddr2taddr'
#  571|   
#  572|   		tsize = __rpc_get_t_size(AF_LOCAL, 0, 0);
#  573|-> 		client = clnt_vc_create(sock, &nbuf, (rpcprog_t)RPCBPROG,
#  574|   					(rpcvers_t)RPCBVERS, tsize, tsize);
#  575|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def203]
libtirpc-1.3.7/src/rtime.c:92:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor 's'
libtirpc-1.3.7/src/rtime.c:85:13: acquire_resource: socket created here
libtirpc-1.3.7/src/rtime.c:86:12: branch_false: following 'false' branch (when 's >= 0')...
libtirpc-1.3.7/src/rtime.c:89:9: branch_false: ...to here
libtirpc-1.3.7/src/rtime.c:92:21: danger: 's' leaks here
#   90|   
#   91|   	/* TCP and UDP port are the same in this case */
#   92|-> 	if ((serv = getservbyname("time", "tcp")) == NULL) {
#   93|   		do_close(s);
#   94|   		return(-1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def204]
libtirpc-1.3.7/src/rtime.c:100:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor 's'
libtirpc-1.3.7/src/rtime.c:85:13: acquire_resource: socket created here
libtirpc-1.3.7/src/rtime.c:86:12: branch_false: following 'false' branch (when 's >= 0')...
libtirpc-1.3.7/src/rtime.c:89:9: branch_false: ...to here
libtirpc-1.3.7/src/rtime.c:92:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rtime.c:97:27: branch_false: ...to here
libtirpc-1.3.7/src/rtime.c:99:12: branch_true: following 'true' branch (when 'type == 2')...
libtirpc-1.3.7/src/rtime.c:100:23: branch_true: ...to here
libtirpc-1.3.7/src/rtime.c:100:23: danger: 's' leaks here
#   98|   
#   99|   	if (type == SOCK_DGRAM) {
#  100|-> 		res = sendto(s, (char *)&thetime, sizeof(thetime), 0,
#  101|   			     (struct sockaddr *)addrp, sizeof(*addrp));
#  102|   		if (res < 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def205]
libtirpc-1.3.7/src/rtime.c:128:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor 's'
libtirpc-1.3.7/src/rtime.c:85:13: acquire_resource: socket created here
libtirpc-1.3.7/src/rtime.c:86:12: branch_false: following 'false' branch (when 's >= 0')...
libtirpc-1.3.7/src/rtime.c:89:9: branch_false: ...to here
libtirpc-1.3.7/src/rtime.c:92:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/rtime.c:97:27: branch_false: ...to here
libtirpc-1.3.7/src/rtime.c:99:12: branch_false: following 'false' branch (when 'type != 2')...
libtirpc-1.3.7/src/rtime.c:128:21: branch_false: ...to here
libtirpc-1.3.7/src/rtime.c:128:21: danger: 's' leaks here
#  126|   		}
#  127|   	} else {
#  128|-> 		if (connect(s, (struct sockaddr *)addrp, sizeof(*addrp)) < 0) {
#  129|   			do_close(s);
#  130|   			return(-1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def206]
libtirpc-1.3.7/src/rtime.c:154:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 's'
libtirpc-1.3.7/src/rtime.c:65:1: enter_function: entry to 'rtime'
libtirpc-1.3.7/src/rtime.c:85:13: acquire_resource: socket created here
libtirpc-1.3.7/src/rtime.c:86:12: branch_false: following 'false' branch (when 's >= 0')...
libtirpc-1.3.7/src/rtime.c:89:9: branch_false: ...to here
libtirpc-1.3.7/src/rtime.c:92:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/rtime.c:93:17: branch_true: ...to here
libtirpc-1.3.7/src/rtime.c:93:17: call_function: calling 'do_close' from 'rtime'
#  152|   
#  153|   	save = errno;
#  154|-> 	(void)close(s);
#  155|   	errno = save;
#  156|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
libtirpc-1.3.7/src/svc.c:246:7: warning[-Wanalyzer-malloc-leak]: leak of 'netid'
libtirpc-1.3.7/src/svc.c:232:6: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc.c:237:11: branch_false: ...to here
libtirpc-1.3.7/src/svc.c:242:11: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc.c:244:23: branch_true: ...to here
libtirpc-1.3.7/src/svc.c:244:15: acquire_memory: allocated here
libtirpc-1.3.7/src/svc.c:246:7: danger: 'netid' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  244|         netid = strdup (tnconf->nc_netid);
#  245|         flag = 1;
#  246|->       freenetconfigent (tnconf);
#  247|       }				/* must have been created with svc_raw_create */
#  248|     if ((netid == NULL) && (flag == 1))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
libtirpc-1.3.7/src/svc_auth_gss.c:143:9: warning[-Wanalyzer-malloc-leak]: leak of 'save'
libtirpc-1.3.7/src/svc_auth_gss.c:946:1: enter_function: entry to 'rpc_gss_set_svc_name'
libtirpc-1.3.7/src/svc_auth_gss.c:952:12: branch_false: following 'false' branch (when 'principal' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_auth_gss.c:955:12: branch_false: following 'false' branch (when 'save' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:958:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:958:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:961:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:961:14: call_function: calling 'svcauth_gss_import_name' from 'rpc_gss_set_svc_name'
#  141|   	OM_uint32	maj_stat, min_stat;
#  142|   
#  143|-> 	gss_log_debug("in svcauth_gss_set_svc_name()");
#  144|   
#  145|   	if (_svcauth_gss_name != GSS_C_NO_NAME) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
libtirpc-1.3.7/src/svc_auth_gss.c:146:28: warning[-Wanalyzer-malloc-leak]: leak of 'save'
libtirpc-1.3.7/src/svc_auth_gss.c:946:1: enter_function: entry to 'rpc_gss_set_svc_name'
libtirpc-1.3.7/src/svc_auth_gss.c:952:12: branch_false: following 'false' branch (when 'principal' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_auth_gss.c:955:12: branch_false: following 'false' branch (when 'save' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:958:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:958:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:961:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:961:14: call_function: calling 'svcauth_gss_import_name' from 'rpc_gss_set_svc_name'
#  144|   
#  145|   	if (_svcauth_gss_name != GSS_C_NO_NAME) {
#  146|-> 		maj_stat = gss_release_name(&min_stat, &_svcauth_gss_name);
#  147|   
#  148|   		if (maj_stat != GSS_S_COMPLETE) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
libtirpc-1.3.7/src/svc_auth_gss.c:149:25: warning[-Wanalyzer-malloc-leak]: leak of 'save'
libtirpc-1.3.7/src/svc_auth_gss.c:946:1: enter_function: entry to 'rpc_gss_set_svc_name'
libtirpc-1.3.7/src/svc_auth_gss.c:952:12: branch_false: following 'false' branch (when 'principal' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_auth_gss.c:955:12: branch_false: following 'false' branch (when 'save' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:958:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:958:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:961:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:961:14: call_function: calling 'svcauth_gss_import_name' from 'rpc_gss_set_svc_name'
#  147|   
#  148|   		if (maj_stat != GSS_S_COMPLETE) {
#  149|-> 			gss_log_status("svcauth_gss_set_svc_name: gss_release_name", 
#  150|   				maj_stat, min_stat);
#  151|   			return (FALSE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
libtirpc-1.3.7/src/svc_auth_gss.c:155:20: warning[-Wanalyzer-malloc-leak]: leak of 'save'
libtirpc-1.3.7/src/svc_auth_gss.c:946:1: enter_function: entry to 'rpc_gss_set_svc_name'
libtirpc-1.3.7/src/svc_auth_gss.c:952:12: branch_false: following 'false' branch (when 'principal' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_auth_gss.c:955:12: branch_false: following 'false' branch (when 'save' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:958:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:958:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:961:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:961:14: call_function: calling 'svcauth_gss_import_name' from 'rpc_gss_set_svc_name'
#  153|   		_svcauth_gss_name = GSS_C_NO_NAME;
#  154|   	}
#  155|-> 	maj_stat = gss_duplicate_name(&min_stat, name, &_svcauth_gss_name);
#  156|   
#  157|   	if (maj_stat != GSS_S_COMPLETE) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
libtirpc-1.3.7/src/svc_auth_gss.c:158:17: warning[-Wanalyzer-malloc-leak]: leak of 'save'
libtirpc-1.3.7/src/svc_auth_gss.c:946:1: enter_function: entry to 'rpc_gss_set_svc_name'
libtirpc-1.3.7/src/svc_auth_gss.c:952:12: branch_false: following 'false' branch (when 'principal' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_auth_gss.c:955:12: branch_false: following 'false' branch (when 'save' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:958:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:958:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:961:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:961:14: call_function: calling 'svcauth_gss_import_name' from 'rpc_gss_set_svc_name'
#  156|   
#  157|   	if (maj_stat != GSS_S_COMPLETE) {
#  158|-> 		gss_log_status("svcauth_gss_set_svc_name: gss_duplicate_name", 
#  159|   			maj_stat, min_stat);
#  160|   		return (FALSE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
libtirpc-1.3.7/src/svc_auth_gss.c:174:9: warning[-Wanalyzer-malloc-leak]: leak of 'save'
libtirpc-1.3.7/src/svc_auth_gss.c:946:1: enter_function: entry to 'rpc_gss_set_svc_name'
libtirpc-1.3.7/src/svc_auth_gss.c:952:12: branch_false: following 'false' branch (when 'principal' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_auth_gss.c:955:12: branch_false: following 'false' branch (when 'save' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:958:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:958:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:961:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:961:14: call_function: calling 'svcauth_gss_import_name' from 'rpc_gss_set_svc_name'
#  172|   	bool_t		result;
#  173|   
#  174|-> 	gss_log_debug("in svcauth_gss_import_name()");
#  175|   
#  176|   	namebuf.value = service;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
libtirpc-1.3.7/src/svc_auth_gss.c:179:20: warning[-Wanalyzer-malloc-leak]: leak of 'save'
libtirpc-1.3.7/src/svc_auth_gss.c:946:1: enter_function: entry to 'rpc_gss_set_svc_name'
libtirpc-1.3.7/src/svc_auth_gss.c:952:12: branch_false: following 'false' branch (when 'principal' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_auth_gss.c:955:12: branch_false: following 'false' branch (when 'save' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:958:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:958:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:961:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:961:14: call_function: calling 'svcauth_gss_import_name' from 'rpc_gss_set_svc_name'
#  177|   	namebuf.length = strlen(service);
#  178|   
#  179|-> 	maj_stat = gss_import_name(&min_stat, &namebuf,
#  180|   				   (gss_OID)GSS_C_NT_HOSTBASED_SERVICE, &name);
#  181|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
libtirpc-1.3.7/src/svc_auth_gss.c:183:17: warning[-Wanalyzer-malloc-leak]: leak of 'save'
libtirpc-1.3.7/src/svc_auth_gss.c:946:1: enter_function: entry to 'rpc_gss_set_svc_name'
libtirpc-1.3.7/src/svc_auth_gss.c:952:12: branch_false: following 'false' branch (when 'principal' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_auth_gss.c:955:12: branch_false: following 'false' branch (when 'save' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:958:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:958:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:961:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:961:14: call_function: calling 'svcauth_gss_import_name' from 'rpc_gss_set_svc_name'
#  181|   
#  182|   	if (maj_stat != GSS_S_COMPLETE) {
#  183|-> 		gss_log_status("svcauth_gss_import_name: gss_import_name", 
#  184|   			maj_stat, min_stat);
#  185|   		return (FALSE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
libtirpc-1.3.7/src/svc_auth_gss.c:409:20: warning[-Wanalyzer-malloc-leak]: leak of 'rpchdr'
libtirpc-1.3.7/src/svc_auth_gss.c:382:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:386:25: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:385:28: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_auth_gss.c:387:12: branch_false: following 'false' branch (when 'rpchdr' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:391:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:399:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:403:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:409:20: danger: 'rpchdr' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  407|   	checksum.length = msg->rm_call.cb_verf.oa_length;
#  408|   
#  409|-> 	maj_stat = gss_verify_mic(&min_stat, gd->ctx, &rpcbuf, &checksum,
#  410|   				  &qop_state);
#  411|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
libtirpc-1.3.7/src/svc_auth_gss.c:958:14: warning[-Wanalyzer-malloc-leak]: leak of 'save'
libtirpc-1.3.7/src/svc_auth_gss.c:952:12: branch_false: following 'false' branch (when 'principal' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:954:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_auth_gss.c:955:12: branch_false: following 'false' branch (when 'save' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:958:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:958:14: danger: 'save' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  956|   		return FALSE;
#  957|   
#  958|-> 	if (!rpc_gss_mech_to_oid(mechanism, &oid))
#  959|   		goto out_err;
#  960|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
libtirpc-1.3.7/src/svc_auth_gss.c:1009:15: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libtirpc-1.3.7/src/svc_auth_gss.c:999:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:1002:18: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:1003:12: branch_false: following 'false' branch (when 'buflen != -1')...
libtirpc-1.3.7/src/svc_auth_gss.c:1005:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:1005:15: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_auth_gss.c:1006:12: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:1009:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:1009:15: danger: 'buf' leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
# 1007|   		return;
# 1008|   
# 1009|-> 	(void)getpwuid_r(uid, &pwd, buf, buflen, &pw);
# 1010|   	if (pw == NULL) {
# 1011|   		free(buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
libtirpc-1.3.7/src/svc_auth_gss.c:1151:20: warning[-Wanalyzer-malloc-leak]: leak of 'namebuf.value'
libtirpc-1.3.7/src/svc_auth_gss.c:1126:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:1128:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:1132:12: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:1138:25: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_auth_gss.c:1139:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:1141:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:1151:20: danger: 'namebuf.value' leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
# 1149|   	}
# 1150|   
# 1151|-> 	maj_stat = gss_import_name(&min_stat, &namebuf,
# 1152|   					GSS_C_NT_USER_NAME, &name);
# 1153|   	free(namebuf.value);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
libtirpc-1.3.7/src/svc_auth_gss.c:1180:15: warning[-Wanalyzer-malloc-leak]: leak of 'result'
libtirpc-1.3.7/src/svc_auth_gss.c:1126:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:1128:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:1132:12: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:1139:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:1141:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:1154:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:1159:20: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:1161:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:1166:20: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:1168:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_auth_gss.c:1173:46: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:1173:18: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_auth_gss.c:1174:12: branch_false: following 'false' branch (when 'result' is non-NULL)...
libtirpc-1.3.7/src/svc_auth_gss.c:1178:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_auth_gss.c:1180:15: danger: 'result' leaks here; was allocated at [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12)
# 1178|   	result->len = namebuf.length;
# 1179|   	(void)memcpy(result->name, namebuf.value, namebuf.length);
# 1180|-> 	(void)gss_release_buffer(&min_stat, &namebuf);
# 1181|   
# 1182|   	*principal = result;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
libtirpc-1.3.7/src/svc_dg.c:138:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libtirpc-1.3.7/src/svc_dg.c:108:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:115:20: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:117:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:122:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:123:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:127:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:128:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:132:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:133:12: branch_false: following 'false' branch (when 'su' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:135:25: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:136:33: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:136:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:138:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:138:9: danger: '<unknown>' leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  136|   	if ((rpc_buffer(xprt) = mem_alloc(su->su_iosz)) == NULL)
#  137|   		goto freedata;
#  138|-> 	xdrmem_create(&(su->su_xdrs), rpc_buffer(xprt), su->su_iosz,
#  139|   		XDR_DECODE);
#  140|   	su->su_cache = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
libtirpc-1.3.7/src/svc_dg.c:138:9: warning[-Wanalyzer-malloc-leak]: leak of 'ext'
libtirpc-1.3.7/src/svc_dg.c:108:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:115:20: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:117:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:122:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:123:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:127:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:127:15: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:128:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:132:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:133:12: branch_false: following 'false' branch (when 'su' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:135:25: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:136:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:138:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:138:9: danger: 'ext' leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  136|   	if ((rpc_buffer(xprt) = mem_alloc(su->su_iosz)) == NULL)
#  137|   		goto freedata;
#  138|-> 	xdrmem_create(&(su->su_xdrs), rpc_buffer(xprt), su->su_iosz,
#  139|   		XDR_DECODE);
#  140|   	su->su_cache = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def223]
libtirpc-1.3.7/src/svc_dg.c:138:9: warning[-Wanalyzer-malloc-leak]: leak of 'su'
libtirpc-1.3.7/src/svc_dg.c:108:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:115:20: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:117:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:122:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:123:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:127:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:128:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:132:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:132:14: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:133:12: branch_false: following 'false' branch (when 'su' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:135:25: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:136:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:138:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:138:9: danger: 'su' leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  136|   	if ((rpc_buffer(xprt) = mem_alloc(su->su_iosz)) == NULL)
#  137|   		goto freedata;
#  138|-> 	xdrmem_create(&(su->su_xdrs), rpc_buffer(xprt), su->su_iosz,
#  139|   		XDR_DECODE);
#  140|   	su->su_cache = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
libtirpc-1.3.7/src/svc_dg.c:138:9: warning[-Wanalyzer-malloc-leak]: leak of 'xprt'
libtirpc-1.3.7/src/svc_dg.c:108:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:115:20: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:117:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:122:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:122:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:123:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:127:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:128:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:132:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:133:12: branch_false: following 'false' branch (when 'su' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:135:25: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:136:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:138:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:138:9: danger: 'xprt' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  136|   	if ((rpc_buffer(xprt) = mem_alloc(su->su_iosz)) == NULL)
#  137|   		goto freedata;
#  138|-> 	xdrmem_create(&(su->su_xdrs), rpc_buffer(xprt), su->su_iosz,
#  139|   		XDR_DECODE);
#  140|   	su->su_cache = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
libtirpc-1.3.7/src/svc_dg.c:151:9: warning[-Wanalyzer-malloc-leak]: leak of 'ext'
libtirpc-1.3.7/src/svc_dg.c:108:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:115:20: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:117:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:122:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:123:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:127:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:127:15: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:128:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:132:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:133:12: branch_false: following 'false' branch (when 'su' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:135:25: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:136:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:138:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:149:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:151:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:151:9: danger: 'ext' leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#  149|   	if (getsockname(fd, (struct sockaddr *)(void *)&ss, &slen) < 0)
#  150|   		goto freedata;
#  151|-> 	__rpc_set_netbuf(&xprt->xp_ltaddr, &ss, slen);
#  152|   
#  153|   	/* Enable reception of IP*_PKTINFO control msgs */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
libtirpc-1.3.7/src/svc_dg.c:151:9: warning[-Wanalyzer-malloc-leak]: leak of 'xprt'
libtirpc-1.3.7/src/svc_dg.c:108:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:115:20: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:117:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:122:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:122:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:123:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:127:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:128:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:132:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:133:12: branch_false: following 'false' branch (when 'su' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:135:25: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:136:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:138:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:149:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:151:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:151:9: danger: 'xprt' leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  149|   	if (getsockname(fd, (struct sockaddr *)(void *)&ss, &slen) < 0)
#  150|   		goto freedata;
#  151|-> 	__rpc_set_netbuf(&xprt->xp_ltaddr, &ss, slen);
#  152|   
#  153|   	/* Enable reception of IP*_PKTINFO control msgs */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
libtirpc-1.3.7/src/svc_dg.c:159:9: warning[-Wanalyzer-malloc-leak]: leak of 'ext'
libtirpc-1.3.7/src/svc_dg.c:108:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:115:20: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:117:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:122:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:123:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:127:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:127:15: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:128:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:132:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:133:12: branch_true: following 'true' branch (when 'su' is NULL)...
libtirpc-1.3.7/src/svc_dg.c:134:17: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:159:9: danger: 'ext' leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
#  157|   	return (xprt);
#  158|   freedata:
#  159|-> 	(void) warnx(svc_dg_str, __no_mem_str);
#  160|   	if (xprt) {
#  161|   		if (su)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
libtirpc-1.3.7/src/svc_dg.c:159:9: warning[-Wanalyzer-malloc-leak]: leak of 'xprt'
libtirpc-1.3.7/src/svc_dg.c:108:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:115:20: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:117:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:122:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:122:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:123:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:127:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:128:12: branch_true: following 'true' branch (when 'ext' is NULL)...
libtirpc-1.3.7/src/svc_dg.c:129:17: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:159:9: danger: 'xprt' leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#  157|   	return (xprt);
#  158|   freedata:
#  159|-> 	(void) warnx(svc_dg_str, __no_mem_str);
#  160|   	if (xprt) {
#  161|   		if (su)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
libtirpc-1.3.7/src/svc_dg.c:472:17: warning[-Wanalyzer-malloc-leak]: leak of 'uc'
libtirpc-1.3.7/src/svc_dg.c:457:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:462:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:462:14: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:463:12: branch_false: following 'false' branch (when 'uc' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:468:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:471:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:472:17: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:472:17: danger: 'uc' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  470|   	uc->uc_entries = ALLOC(cache_ptr, size * SPARSENESS);
#  471|   	if (uc->uc_entries == NULL) {
#  472|-> 		warnx(cache_enable_str, alloc_err, "data");
#  473|   		FREE(uc, struct cl_cache, 1);
#  474|   		mutex_unlock(&dupreq_lock);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
libtirpc-1.3.7/src/svc_dg.c:480:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libtirpc-1.3.7/src/svc_dg.c:457:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:462:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:463:12: branch_false: following 'false' branch (when 'uc' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:468:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:470:26: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:471:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:477:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:479:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:480:17: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:480:17: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  478|   	uc->uc_fifo = ALLOC(cache_ptr, size);
#  479|   	if (uc->uc_fifo == NULL) {
#  480|-> 		warnx(cache_enable_str, alloc_err, "fifo");
#  481|   		FREE(uc->uc_entries, cache_ptr, size * SPARSENESS);
#  482|   		FREE(uc, struct cl_cache, 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
libtirpc-1.3.7/src/svc_dg.c:480:17: warning[-Wanalyzer-malloc-leak]: leak of 'uc'
libtirpc-1.3.7/src/svc_dg.c:457:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:462:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:462:14: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:463:12: branch_false: following 'false' branch (when 'uc' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:468:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:471:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:477:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:479:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:480:17: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:480:17: danger: 'uc' leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
#  478|   	uc->uc_fifo = ALLOC(cache_ptr, size);
#  479|   	if (uc->uc_fifo == NULL) {
#  480|-> 		warnx(cache_enable_str, alloc_err, "fifo");
#  481|   		FREE(uc->uc_entries, cache_ptr, size * SPARSENESS);
#  482|   		FREE(uc, struct cl_cache, 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
libtirpc-1.3.7/src/svc_dg.c:488:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libtirpc-1.3.7/src/svc_dg.c:457:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:462:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:463:12: branch_false: following 'false' branch (when 'uc' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:468:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:470:26: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:471:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:477:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:479:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:486:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:488:9: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
#  486|   	MEMZERO(uc->uc_fifo, cache_ptr, size);
#  487|   	su->su_cache = (char *)(void *)uc;
#  488|-> 	mutex_unlock(&dupreq_lock);
#  489|   	return (1);
#  490|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
libtirpc-1.3.7/src/svc_dg.c:488:9: warning[-Wanalyzer-malloc-leak]: leak of 'uc'
libtirpc-1.3.7/src/svc_dg.c:457:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:462:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:462:14: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:463:12: branch_false: following 'false' branch (when 'uc' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:468:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:471:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:477:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:479:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_dg.c:486:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:488:9: danger: 'uc' leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
#  486|   	MEMZERO(uc->uc_fifo, cache_ptr, size);
#  487|   	su->su_cache = (char *)(void *)uc;
#  488|-> 	mutex_unlock(&dupreq_lock);
#  489|   	return (1);
#  490|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
libtirpc-1.3.7/src/svc_dg.c:547:25: warning[-Wanalyzer-malloc-leak]: leak of 'victim'
libtirpc-1.3.7/src/svc_dg.c:525:12: branch_false: following 'false' branch (when 'victim' is NULL)...
libtirpc-1.3.7/src/svc_dg.c:539:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:539:26: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:540:20: branch_false: following 'false' branch (when 'victim' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:545:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:546:20: branch_true: following 'true' branch (when 'newbuf' is NULL)...
libtirpc-1.3.7/src/svc_dg.c:547:25: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:547:25: danger: 'victim' leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
#  545|   		newbuf = mem_alloc(su->su_iosz);
#  546|   		if (newbuf == NULL) {
#  547|-> 			warnx(cache_set_str, cache_set_err3);
#  548|   			FREE(victim, struct cache_node, 1);
#  549|   			mutex_unlock(&dupreq_lock);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
libtirpc-1.3.7/src/svc_dg.c:558:30: warning[-Wanalyzer-malloc-leak]: leak of 'newbuf'
libtirpc-1.3.7/src/svc_dg.c:525:12: branch_false: following 'false' branch (when 'victim' is NULL)...
libtirpc-1.3.7/src/svc_dg.c:539:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:540:20: branch_false: following 'false' branch (when 'victim' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:545:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:545:26: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:546:20: branch_false: following 'false' branch (when 'newbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:557:13: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:557:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:558:46: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:558:30: danger: 'newbuf' leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
#  556|   	 */
#  557|   	if (libtirpc_debug_level > 3) {
#  558|-> 		if ((nconf = getnetconfigent(xprt->xp_netid))) {
#  559|   			uaddr = taddr2uaddr(nconf, &xprt->xp_rtaddr);
#  560|   			freenetconfigent(nconf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
libtirpc-1.3.7/src/svc_dg.c:558:30: warning[-Wanalyzer-malloc-leak]: leak of 'victim'
libtirpc-1.3.7/src/svc_dg.c:525:12: branch_false: following 'false' branch (when 'victim' is NULL)...
libtirpc-1.3.7/src/svc_dg.c:539:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:539:26: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:540:20: branch_false: following 'false' branch (when 'victim' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:545:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:546:20: branch_false: following 'false' branch (when 'newbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:557:13: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:557:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:558:46: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:558:30: danger: 'victim' leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
#  556|   	 */
#  557|   	if (libtirpc_debug_level > 3) {
#  558|-> 		if ((nconf = getnetconfigent(xprt->xp_netid))) {
#  559|   			uaddr = taddr2uaddr(nconf, &xprt->xp_rtaddr);
#  560|   			freenetconfigent(nconf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
libtirpc-1.3.7/src/svc_dg.c:559:33: warning[-Wanalyzer-malloc-leak]: leak of 'newbuf'
libtirpc-1.3.7/src/svc_dg.c:525:12: branch_false: following 'false' branch (when 'victim' is NULL)...
libtirpc-1.3.7/src/svc_dg.c:539:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:540:20: branch_false: following 'false' branch (when 'victim' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:545:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:545:26: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:546:20: branch_false: following 'false' branch (when 'newbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:557:13: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:557:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:558:46: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:558:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:559:52: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:559:33: danger: 'newbuf' leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
#  557|   	if (libtirpc_debug_level > 3) {
#  558|   		if ((nconf = getnetconfigent(xprt->xp_netid))) {
#  559|-> 			uaddr = taddr2uaddr(nconf, &xprt->xp_rtaddr);
#  560|   			freenetconfigent(nconf);
#  561|   			LIBTIRPC_DEBUG(4,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
libtirpc-1.3.7/src/svc_dg.c:559:33: warning[-Wanalyzer-malloc-leak]: leak of 'victim'
libtirpc-1.3.7/src/svc_dg.c:525:12: branch_false: following 'false' branch (when 'victim' is NULL)...
libtirpc-1.3.7/src/svc_dg.c:539:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:539:26: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:540:20: branch_false: following 'false' branch (when 'victim' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:545:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:546:20: branch_false: following 'false' branch (when 'newbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:557:13: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:557:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:558:46: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:558:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:559:52: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:559:33: danger: 'victim' leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
#  557|   	if (libtirpc_debug_level > 3) {
#  558|   		if ((nconf = getnetconfigent(xprt->xp_netid))) {
#  559|-> 			uaddr = taddr2uaddr(nconf, &xprt->xp_rtaddr);
#  560|   			freenetconfigent(nconf);
#  561|   			LIBTIRPC_DEBUG(4,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
libtirpc-1.3.7/src/svc_dg.c:560:25: warning[-Wanalyzer-malloc-leak]: leak of 'newbuf'
libtirpc-1.3.7/src/svc_dg.c:525:12: branch_false: following 'false' branch (when 'victim' is NULL)...
libtirpc-1.3.7/src/svc_dg.c:539:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:540:20: branch_false: following 'false' branch (when 'victim' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:545:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:545:26: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:546:20: branch_false: following 'false' branch (when 'newbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:557:13: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:557:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:558:46: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:558:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:559:52: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:560:25: danger: 'newbuf' leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
#  558|   		if ((nconf = getnetconfigent(xprt->xp_netid))) {
#  559|   			uaddr = taddr2uaddr(nconf, &xprt->xp_rtaddr);
#  560|-> 			freenetconfigent(nconf);
#  561|   			LIBTIRPC_DEBUG(4,
#  562|   				("cache set for xid= %x prog=%d vers=%d proc=%d for rmtaddr=%s\n",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
libtirpc-1.3.7/src/svc_dg.c:560:25: warning[-Wanalyzer-malloc-leak]: leak of 'victim'
libtirpc-1.3.7/src/svc_dg.c:525:12: branch_false: following 'false' branch (when 'victim' is NULL)...
libtirpc-1.3.7/src/svc_dg.c:539:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:539:26: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:540:20: branch_false: following 'false' branch (when 'victim' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:545:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:546:20: branch_false: following 'false' branch (when 'newbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:557:13: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:557:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:558:46: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:558:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:559:52: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:560:25: danger: 'victim' leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
#  558|   		if ((nconf = getnetconfigent(xprt->xp_netid))) {
#  559|   			uaddr = taddr2uaddr(nconf, &xprt->xp_rtaddr);
#  560|-> 			freenetconfigent(nconf);
#  561|   			LIBTIRPC_DEBUG(4,
#  562|   				("cache set for xid= %x prog=%d vers=%d proc=%d for rmtaddr=%s\n",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def241]
libtirpc-1.3.7/src/svc_dg.c:561:25: warning[-Wanalyzer-malloc-leak]: leak of 'newbuf'
libtirpc-1.3.7/src/svc_dg.c:525:12: branch_false: following 'false' branch (when 'victim' is NULL)...
libtirpc-1.3.7/src/svc_dg.c:539:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:540:20: branch_false: following 'false' branch (when 'victim' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:545:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:545:26: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:546:20: branch_false: following 'false' branch (when 'newbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:557:13: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:557:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:558:46: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:558:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:559:52: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:561:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:561:25: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:561:25: danger: 'newbuf' leaks here; was allocated at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
#  559|   			uaddr = taddr2uaddr(nconf, &xprt->xp_rtaddr);
#  560|   			freenetconfigent(nconf);
#  561|-> 			LIBTIRPC_DEBUG(4,
#  562|   				("cache set for xid= %x prog=%d vers=%d proc=%d for rmtaddr=%s\n",
#  563|   				su->su_xid, uc->uc_prog, uc->uc_vers,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
libtirpc-1.3.7/src/svc_dg.c:561:25: warning[-Wanalyzer-malloc-leak]: leak of 'victim'
libtirpc-1.3.7/src/svc_dg.c:525:12: branch_false: following 'false' branch (when 'victim' is NULL)...
libtirpc-1.3.7/src/svc_dg.c:539:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:539:26: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:540:20: branch_false: following 'false' branch (when 'victim' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:545:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:546:20: branch_false: following 'false' branch (when 'newbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:557:13: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:557:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:558:46: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:558:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:559:52: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:561:25: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_dg.c:561:25: branch_true: ...to here
libtirpc-1.3.7/src/svc_dg.c:561:25: danger: 'victim' leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
#  559|   			uaddr = taddr2uaddr(nconf, &xprt->xp_rtaddr);
#  560|   			freenetconfigent(nconf);
#  561|-> 			LIBTIRPC_DEBUG(4,
#  562|   				("cache set for xid= %x prog=%d vers=%d proc=%d for rmtaddr=%s\n",
#  563|   				su->su_xid, uc->uc_prog, uc->uc_vers,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
libtirpc-1.3.7/src/svc_dg.c:571:9: warning[-Wanalyzer-malloc-leak]: leak of 'victim'
libtirpc-1.3.7/src/svc_dg.c:525:12: branch_false: following 'false' branch (when 'victim' is NULL)...
libtirpc-1.3.7/src/svc_dg.c:539:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:539:26: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_dg.c:540:20: branch_false: following 'false' branch (when 'victim' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:545:26: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:546:20: branch_false: following 'false' branch (when 'newbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_dg.c:557:13: branch_false: ...to here
libtirpc-1.3.7/src/svc_dg.c:571:9: danger: 'victim' leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
#  569|   	victim->cache_reply = rpc_buffer(xprt);
#  570|   	rpc_buffer(xprt) = newbuf;
#  571|-> 	xdrmem_create(&(su->su_xdrs), rpc_buffer(xprt),
#  572|   			su->su_iosz, XDR_ENCODE);
#  573|   	victim->cache_xid = su->su_xid;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def244]
libtirpc-1.3.7/src/svc_generic.c:265:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
libtirpc-1.3.7/src/svc_generic.c:141:1: enter_function: entry to 'svc_tp_create'
libtirpc-1.3.7/src/svc_generic.c:149:12: branch_false: following 'false' branch (when 'nconf' is non-NULL)...
libtirpc-1.3.7/src/svc_generic.c:155:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_generic.c:155:16: call_function: calling 'svc_tli_create' from 'svc_tp_create'
#  263|   			break;
#  264|   		case SOCK_DGRAM:
#  265|-> 			xprt = svc_dg_create(fd, sendsz, recvsz);
#  266|   			break;
#  267|   		default:

Error: GCC_ANALYZER_WARNING (CWE-775): [#def245]
libtirpc-1.3.7/src/svc_generic.c:268:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
libtirpc-1.3.7/src/svc_generic.c:141:1: enter_function: entry to 'svc_tp_create'
libtirpc-1.3.7/src/svc_generic.c:149:12: branch_false: following 'false' branch (when 'nconf' is non-NULL)...
libtirpc-1.3.7/src/svc_generic.c:155:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_generic.c:155:16: call_function: calling 'svc_tli_create' from 'svc_tp_create'
#  266|   			break;
#  267|   		default:
#  268|-> 			warnx("svc_tli_create: bad service type");
#  269|   			goto freedata;
#  270|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def246]
libtirpc-1.3.7/src/svc_generic.c:292:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
libtirpc-1.3.7/src/svc_generic.c:141:1: enter_function: entry to 'svc_tp_create'
libtirpc-1.3.7/src/svc_generic.c:149:12: branch_false: following 'false' branch (when 'nconf' is non-NULL)...
libtirpc-1.3.7/src/svc_generic.c:155:16: branch_false: ...to here
libtirpc-1.3.7/src/svc_generic.c:155:16: call_function: calling 'svc_tli_create' from 'svc_tp_create'
#  290|   freedata:
#  291|   	if (madefd)
#  292|-> 		(void)close(fd);
#  293|   	if (xprt) {
#  294|   		if (!madefd) /* so that svc_destroy doesnt close fd */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
libtirpc-1.3.7/src/svc_run.c:81:19: warning[-Wanalyzer-malloc-leak]: leak of 'my_pollfd'
libtirpc-1.3.7/src/svc_run.c:59:10: branch_true: following 'true' branch (when 'last_max_pollfd != max_pollfd')...
libtirpc-1.3.7/src/svc_run.c:62:15: branch_true: ...to here
libtirpc-1.3.7/src/svc_run.c:64:14: branch_false: following 'false' branch (when 'new_pollfd' is non-NULL)...
libtirpc-1.3.7/src/svc_run.c:74:7: branch_false: ...to here
libtirpc-1.3.7/src/svc_run.c:74:19: branch_false: following 'false' branch (when 'i >= max_pollfd')...
libtirpc-1.3.7/src/svc_run.c:81:19: branch_false: ...to here
libtirpc-1.3.7/src/svc_run.c:81:19: danger: 'my_pollfd' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   79|           }
#   80|   
#   81|->       switch (i = poll (my_pollfd, max_pollfd, -1))
#   82|           {
#   83|           case -1:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
libtirpc-1.3.7/src/svc_simple.c:159:33: warning[-Wanalyzer-malloc-leak]: leak of 'xdrbuf'
libtirpc-1.3.7/src/svc_simple.c:104:12: branch_false: following 'false' branch (when 'procnum != 0')...
libtirpc-1.3.7/src/svc_simple.c:110:12: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:112:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:117:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:118:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_simple.c:130:22: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:130:36: branch_false: following 'false' branch (when 'pl' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:140:20: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:140:20: branch_true: following 'true' branch (when 'svcxprt' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:143:35: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:144:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:146:30: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:146:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:151:34: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:152:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:157:40: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:40: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_simple.c:157:28: branch_false: following 'false' branch (when 'xdrbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:158:50: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:29: branch_true: following 'true' branch (when 'netid' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:159:33: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:159:33: danger: 'xdrbuf' leaks here; was allocated at [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
#  157|   			if (((xdrbuf = malloc((unsigned)recvsz)) == NULL) ||
#  158|   				((netid = strdup(nconf->nc_netid)) == NULL)) {
#  159|-> 				warnx(rpc_reg_err, rpc_reg_msg, __no_mem_str);
#  160|   				SVC_DESTROY(svcxprt);
#  161|   				free(xdrbuf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
libtirpc-1.3.7/src/svc_simple.c:160:33: warning[-Wanalyzer-malloc-leak]: leak of 'xdrbuf'
libtirpc-1.3.7/src/svc_simple.c:104:12: branch_false: following 'false' branch (when 'procnum != 0')...
libtirpc-1.3.7/src/svc_simple.c:110:12: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:112:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:117:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:118:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_simple.c:130:22: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:130:36: branch_false: following 'false' branch (when 'pl' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:140:20: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:140:20: branch_true: following 'true' branch (when 'svcxprt' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:143:35: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:144:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:146:30: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:146:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:151:34: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:152:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:157:40: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:40: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_simple.c:157:28: branch_false: following 'false' branch (when 'xdrbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:158:50: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:29: branch_true: following 'true' branch (when 'netid' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:159:33: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:160:33: danger: 'xdrbuf' leaks here; was allocated at [(17)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/16)
#  158|   				((netid = strdup(nconf->nc_netid)) == NULL)) {
#  159|   				warnx(rpc_reg_err, rpc_reg_msg, __no_mem_str);
#  160|-> 				SVC_DESTROY(svcxprt);
#  161|   				free(xdrbuf);
#  162|   				break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
libtirpc-1.3.7/src/svc_simple.c:176:32: warning[-Wanalyzer-malloc-leak]: leak of 'netid'
libtirpc-1.3.7/src/svc_simple.c:104:12: branch_false: following 'false' branch (when 'procnum != 0')...
libtirpc-1.3.7/src/svc_simple.c:110:12: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:112:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:117:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:118:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_simple.c:130:22: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:130:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:131:49: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:140:20: branch_true: following 'true' branch (when 'svcxprt' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:143:35: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:144:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:146:30: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:146:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:151:34: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:152:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:157:40: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:28: branch_false: following 'false' branch (when 'xdrbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:158:50: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:158:43: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_simple.c:157:29: branch_false: following 'false' branch (when 'netid' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:170:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:171:30: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:175:20: branch_true: following 'true' branch (when 'pl' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:176:32: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:176:32: danger: 'netid' leaks here; was allocated at [(19)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/18)
#  174|   				break;
#  175|   		if (pl == NULL) { /* Not yet */
#  176|-> 			(void) rpcb_unset(prognum, versnum, nconf);
#  177|   		} else {
#  178|   			/* so that svc_reg does not call rpcb_set() */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
libtirpc-1.3.7/src/svc_simple.c:176:32: warning[-Wanalyzer-malloc-leak]: leak of 'xdrbuf'
libtirpc-1.3.7/src/svc_simple.c:104:12: branch_false: following 'false' branch (when 'procnum != 0')...
libtirpc-1.3.7/src/svc_simple.c:110:12: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:112:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:117:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:118:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_simple.c:130:22: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:130:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:131:49: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:140:20: branch_true: following 'true' branch (when 'svcxprt' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:143:35: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:144:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:146:30: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:146:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:151:34: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:152:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:157:40: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:40: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_simple.c:157:28: branch_false: following 'false' branch (when 'xdrbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:158:50: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:29: branch_false: following 'false' branch (when 'netid' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:170:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:171:30: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:175:20: branch_true: following 'true' branch (when 'pl' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:176:32: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:176:32: danger: 'xdrbuf' leaks here; was allocated at [(17)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/16)
#  174|   				break;
#  175|   		if (pl == NULL) { /* Not yet */
#  176|-> 			(void) rpcb_unset(prognum, versnum, nconf);
#  177|   		} else {
#  178|   			/* so that svc_reg does not call rpcb_set() */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
libtirpc-1.3.7/src/svc_simple.c:182:22: warning[-Wanalyzer-malloc-leak]: leak of 'netid'
libtirpc-1.3.7/src/svc_simple.c:104:12: branch_false: following 'false' branch (when 'procnum != 0')...
libtirpc-1.3.7/src/svc_simple.c:110:12: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:112:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:117:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:118:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_simple.c:130:22: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:130:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:131:49: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:140:20: branch_true: following 'true' branch (when 'svcxprt' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:143:35: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:144:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:146:30: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:146:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:151:34: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:152:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:157:40: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:28: branch_false: following 'false' branch (when 'xdrbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:158:50: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:158:43: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_simple.c:157:29: branch_false: following 'false' branch (when 'netid' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:170:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:171:30: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:175:20: branch_false: following 'false' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:182:22: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:182:22: danger: 'netid' leaks here; was allocated at [(19)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/18)
#  180|   		}
#  181|   
#  182|-> 		if (!svc_reg(svcxprt, prognum, versnum, universal, nconf)) {
#  183|   			warnx("%s couldn't register prog %u vers %u for %s",
#  184|   				rpc_reg_msg, (unsigned)prognum,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
libtirpc-1.3.7/src/svc_simple.c:182:22: warning[-Wanalyzer-malloc-leak]: leak of 'xdrbuf'
libtirpc-1.3.7/src/svc_simple.c:104:12: branch_false: following 'false' branch (when 'procnum != 0')...
libtirpc-1.3.7/src/svc_simple.c:110:12: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:112:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:117:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:118:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_simple.c:130:22: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:130:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:131:49: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:140:20: branch_true: following 'true' branch (when 'svcxprt' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:143:35: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:144:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:146:30: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:146:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:151:34: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:152:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:157:40: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:40: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_simple.c:157:28: branch_false: following 'false' branch (when 'xdrbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:158:50: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:29: branch_false: following 'false' branch (when 'netid' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:170:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:171:30: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:175:20: branch_false: following 'false' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:182:22: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:182:22: danger: 'xdrbuf' leaks here; was allocated at [(17)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/16)
#  180|   		}
#  181|   
#  182|-> 		if (!svc_reg(svcxprt, prognum, versnum, universal, nconf)) {
#  183|   			warnx("%s couldn't register prog %u vers %u for %s",
#  184|   				rpc_reg_msg, (unsigned)prognum,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
libtirpc-1.3.7/src/svc_simple.c:183:25: warning[-Wanalyzer-malloc-leak]: leak of 'netid'
libtirpc-1.3.7/src/svc_simple.c:104:12: branch_false: following 'false' branch (when 'procnum != 0')...
libtirpc-1.3.7/src/svc_simple.c:110:12: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:112:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:117:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:118:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_simple.c:130:22: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:130:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:131:49: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:140:20: branch_true: following 'true' branch (when 'svcxprt' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:143:35: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:144:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:146:30: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:146:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:151:34: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:152:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:157:40: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:28: branch_false: following 'false' branch (when 'xdrbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:158:50: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:158:43: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_simple.c:157:29: branch_false: following 'false' branch (when 'netid' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:170:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:171:30: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:182:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_simple.c:183:25: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:183:25: danger: 'netid' leaks here; was allocated at [(19)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/18)
#  181|   
#  182|   		if (!svc_reg(svcxprt, prognum, versnum, universal, nconf)) {
#  183|-> 			warnx("%s couldn't register prog %u vers %u for %s",
#  184|   				rpc_reg_msg, (unsigned)prognum,
#  185|   				(unsigned)versnum, netid);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
libtirpc-1.3.7/src/svc_simple.c:183:25: warning[-Wanalyzer-malloc-leak]: leak of 'xdrbuf'
libtirpc-1.3.7/src/svc_simple.c:104:12: branch_false: following 'false' branch (when 'procnum != 0')...
libtirpc-1.3.7/src/svc_simple.c:110:12: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:112:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:117:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:118:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_simple.c:130:22: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:130:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:131:49: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:140:20: branch_true: following 'true' branch (when 'svcxprt' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:143:35: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:144:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:146:30: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:146:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:151:34: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:152:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:157:40: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:40: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_simple.c:157:28: branch_false: following 'false' branch (when 'xdrbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:158:50: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:29: branch_false: following 'false' branch (when 'netid' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:170:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:171:30: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:182:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_simple.c:183:25: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:183:25: danger: 'xdrbuf' leaks here; was allocated at [(17)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/16)
#  181|   
#  182|   		if (!svc_reg(svcxprt, prognum, versnum, universal, nconf)) {
#  183|-> 			warnx("%s couldn't register prog %u vers %u for %s",
#  184|   				rpc_reg_msg, (unsigned)prognum,
#  185|   				(unsigned)versnum, netid);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
libtirpc-1.3.7/src/svc_simple.c:187:33: warning[-Wanalyzer-malloc-leak]: leak of 'xdrbuf'
libtirpc-1.3.7/src/svc_simple.c:104:12: branch_false: following 'false' branch (when 'procnum != 0')...
libtirpc-1.3.7/src/svc_simple.c:110:12: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:112:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:117:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:118:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_simple.c:130:22: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:130:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:131:49: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:140:20: branch_true: following 'true' branch (when 'svcxprt' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:143:35: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:144:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:146:30: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:146:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:151:34: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:152:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:157:40: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:40: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_simple.c:157:28: branch_false: following 'false' branch (when 'xdrbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:158:50: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:29: branch_false: following 'false' branch (when 'netid' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:170:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:171:30: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:182:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_simple.c:183:25: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:186:28: branch_true: following 'true' branch (when 'madenow != 0')...
libtirpc-1.3.7/src/svc_simple.c:187:33: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:187:33: danger: 'xdrbuf' leaks here; was allocated at [(17)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/16)
#  185|   				(unsigned)versnum, netid);
#  186|   			if (madenow) {
#  187|-> 				SVC_DESTROY(svcxprt);
#  188|   				free(xdrbuf);
#  189|   				free(netid);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
libtirpc-1.3.7/src/svc_simple.c:196:25: warning[-Wanalyzer-malloc-leak]: leak of 'netid'
libtirpc-1.3.7/src/svc_simple.c:104:12: branch_false: following 'false' branch (when 'procnum != 0')...
libtirpc-1.3.7/src/svc_simple.c:110:12: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:112:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:117:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:118:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_simple.c:130:22: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:130:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:131:49: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:140:20: branch_true: following 'true' branch (when 'svcxprt' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:143:35: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:144:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:146:30: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:146:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:151:34: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:152:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:157:40: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:28: branch_false: following 'false' branch (when 'xdrbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:158:50: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:158:43: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_simple.c:157:29: branch_false: following 'false' branch (when 'netid' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:170:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:171:30: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:182:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:194:22: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:195:20: branch_true: following 'true' branch (when 'pl' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:196:25: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:196:25: danger: 'netid' leaks here; was allocated at [(19)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/18)
#  194|   		pl = malloc(sizeof (struct proglst));
#  195|   		if (pl == NULL) {
#  196|-> 			warnx(rpc_reg_err, rpc_reg_msg, __no_mem_str);
#  197|   			if (madenow) {
#  198|   				SVC_DESTROY(svcxprt);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
libtirpc-1.3.7/src/svc_simple.c:196:25: warning[-Wanalyzer-malloc-leak]: leak of 'xdrbuf'
libtirpc-1.3.7/src/svc_simple.c:104:12: branch_false: following 'false' branch (when 'procnum != 0')...
libtirpc-1.3.7/src/svc_simple.c:110:12: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:112:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:117:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:118:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_simple.c:130:22: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:130:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:131:49: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:140:20: branch_true: following 'true' branch (when 'svcxprt' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:143:35: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:144:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:146:30: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:146:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:151:34: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:152:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:157:40: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:40: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_simple.c:157:28: branch_false: following 'false' branch (when 'xdrbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:158:50: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:29: branch_false: following 'false' branch (when 'netid' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:170:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:171:30: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:182:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:194:22: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:195:20: branch_true: following 'true' branch (when 'pl' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:196:25: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:196:25: danger: 'xdrbuf' leaks here; was allocated at [(17)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/16)
#  194|   		pl = malloc(sizeof (struct proglst));
#  195|   		if (pl == NULL) {
#  196|-> 			warnx(rpc_reg_err, rpc_reg_msg, __no_mem_str);
#  197|   			if (madenow) {
#  198|   				SVC_DESTROY(svcxprt);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
libtirpc-1.3.7/src/svc_simple.c:198:33: warning[-Wanalyzer-malloc-leak]: leak of 'netid'
libtirpc-1.3.7/src/svc_simple.c:104:12: branch_false: following 'false' branch (when 'procnum != 0')...
libtirpc-1.3.7/src/svc_simple.c:110:12: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:112:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:117:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:118:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_simple.c:130:22: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:130:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:131:49: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:140:20: branch_true: following 'true' branch (when 'svcxprt' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:143:35: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:144:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:146:30: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:146:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:151:34: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:152:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:157:40: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:28: branch_false: following 'false' branch (when 'xdrbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:158:50: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:158:43: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_simple.c:157:29: branch_false: following 'false' branch (when 'netid' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:170:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:171:30: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:182:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:194:22: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:195:20: branch_true: following 'true' branch (when 'pl' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:196:25: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:197:28: branch_true: following 'true' branch (when 'madenow != 0')...
libtirpc-1.3.7/src/svc_simple.c:198:33: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:198:33: danger: 'netid' leaks here; was allocated at [(19)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/18)
#  196|   			warnx(rpc_reg_err, rpc_reg_msg, __no_mem_str);
#  197|   			if (madenow) {
#  198|-> 				SVC_DESTROY(svcxprt);
#  199|   				free(xdrbuf);
#  200|   				free(netid);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
libtirpc-1.3.7/src/svc_simple.c:198:33: warning[-Wanalyzer-malloc-leak]: leak of 'xdrbuf'
libtirpc-1.3.7/src/svc_simple.c:104:12: branch_false: following 'false' branch (when 'procnum != 0')...
libtirpc-1.3.7/src/svc_simple.c:110:12: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:112:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:117:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:118:16: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_simple.c:130:22: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:130:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:131:49: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:140:20: branch_true: following 'true' branch (when 'svcxprt' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:143:35: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:144:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:146:30: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:146:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:151:34: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:152:28: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:157:40: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:40: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_simple.c:157:28: branch_false: following 'false' branch (when 'xdrbuf' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:158:50: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:157:29: branch_false: following 'false' branch (when 'netid' is non-NULL)...
 branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:170:36: branch_true: following 'true' branch (when 'pl' is non-NULL)...
libtirpc-1.3.7/src/svc_simple.c:171:30: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:182:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_simple.c:194:22: branch_false: ...to here
libtirpc-1.3.7/src/svc_simple.c:195:20: branch_true: following 'true' branch (when 'pl' is NULL)...
libtirpc-1.3.7/src/svc_simple.c:196:25: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:197:28: branch_true: following 'true' branch (when 'madenow != 0')...
libtirpc-1.3.7/src/svc_simple.c:198:33: branch_true: ...to here
libtirpc-1.3.7/src/svc_simple.c:198:33: danger: 'xdrbuf' leaks here; was allocated at [(17)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/16)
#  196|   			warnx(rpc_reg_err, rpc_reg_msg, __no_mem_str);
#  197|   			if (madenow) {
#  198|-> 				SVC_DESTROY(svcxprt);
#  199|   				free(xdrbuf);
#  200|   				free(netid);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
libtirpc-1.3.7/src/svc_vc.c:165:14: warning[-Wanalyzer-malloc-leak]: leak of 'r'
libtirpc-1.3.7/src/svc_vc.c:160:13: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:161:12: branch_false: following 'false' branch (when 'r' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:165:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:165:14: danger: 'r' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  163|   		goto cleanup_svc_vc_create;
#  164|   	}
#  165|-> 	if (!__rpc_fd2sockinfo(fd, &si)) {
#  166|   		warnx("svc_vc_create: __rpc_fd2sockinfo failed");
#  167|   		goto cleanup_svc_vc_create;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
libtirpc-1.3.7/src/svc_vc.c:166:17: warning[-Wanalyzer-malloc-leak]: leak of 'r'
libtirpc-1.3.7/src/svc_vc.c:160:13: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:161:12: branch_false: following 'false' branch (when 'r' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:165:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:165:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_vc.c:166:17: branch_true: ...to here
libtirpc-1.3.7/src/svc_vc.c:166:17: danger: 'r' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  164|   	}
#  165|   	if (!__rpc_fd2sockinfo(fd, &si)) {
#  166|-> 		warnx("svc_vc_create: __rpc_fd2sockinfo failed");
#  167|   		goto cleanup_svc_vc_create;
#  168|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
libtirpc-1.3.7/src/svc_vc.c:169:23: warning[-Wanalyzer-malloc-leak]: leak of 'r'
libtirpc-1.3.7/src/svc_vc.c:160:13: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:161:12: branch_false: following 'false' branch (when 'r' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:165:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:165:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_vc.c:169:23: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:169:23: danger: 'r' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  167|   		goto cleanup_svc_vc_create;
#  168|   	}
#  169|-> 	r->sendsize = __rpc_get_t_size(si.si_af, si.si_proto, (int)sendsize);
#  170|   	r->recvsize = __rpc_get_t_size(si.si_af, si.si_proto, (int)recvsize);
#  171|   	r->maxrec = __svc_maxrec;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
libtirpc-1.3.7/src/svc_vc.c:170:23: warning[-Wanalyzer-malloc-leak]: leak of 'r'
libtirpc-1.3.7/src/svc_vc.c:160:13: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:161:12: branch_false: following 'false' branch (when 'r' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:165:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:165:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_vc.c:169:23: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:170:23: danger: 'r' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  168|   	}
#  169|   	r->sendsize = __rpc_get_t_size(si.si_af, si.si_proto, (int)sendsize);
#  170|-> 	r->recvsize = __rpc_get_t_size(si.si_af, si.si_proto, (int)recvsize);
#  171|   	r->maxrec = __svc_maxrec;
#  172|   	xprt = mem_alloc(sizeof(SVCXPRT));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
libtirpc-1.3.7/src/svc_vc.c:174:17: warning[-Wanalyzer-malloc-leak]: leak of 'r'
libtirpc-1.3.7/src/svc_vc.c:160:13: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:161:12: branch_false: following 'false' branch (when 'r' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:165:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:165:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_vc.c:169:23: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:173:12: branch_true: following 'true' branch (when 'xprt' is NULL)...
libtirpc-1.3.7/src/svc_vc.c:174:17: branch_true: ...to here
libtirpc-1.3.7/src/svc_vc.c:174:17: danger: 'r' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  172|   	xprt = mem_alloc(sizeof(SVCXPRT));
#  173|   	if (xprt == NULL) {
#  174|-> 		warnx("svc_vc_create: out of memory");
#  175|   		goto cleanup_svc_vc_create;
#  176|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
libtirpc-1.3.7/src/svc_vc.c:179:17: warning[-Wanalyzer-malloc-leak]: leak of 'r'
libtirpc-1.3.7/src/svc_vc.c:160:13: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:161:12: branch_false: following 'false' branch (when 'r' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:165:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:165:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_vc.c:169:23: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:173:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:177:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:178:12: branch_true: following 'true' branch (when 'ext' is NULL)...
libtirpc-1.3.7/src/svc_vc.c:179:17: branch_true: ...to here
libtirpc-1.3.7/src/svc_vc.c:179:17: danger: 'r' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  177|   	ext = mem_alloc(sizeof (*ext));
#  178|   	if (ext == NULL) {
#  179|-> 		warnx("svc_vc_create: out of memory");
#  180|   		goto cleanup_svc_vc_create;
#  181|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
libtirpc-1.3.7/src/svc_vc.c:179:17: warning[-Wanalyzer-malloc-leak]: leak of 'xprt'
libtirpc-1.3.7/src/svc_vc.c:161:12: branch_false: following 'false' branch (when 'r' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:165:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:165:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_vc.c:169:23: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:172:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:173:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:177:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:178:12: branch_true: following 'true' branch (when 'ext' is NULL)...
libtirpc-1.3.7/src/svc_vc.c:179:17: branch_true: ...to here
libtirpc-1.3.7/src/svc_vc.c:179:17: danger: 'xprt' leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#  177|   	ext = mem_alloc(sizeof (*ext));
#  178|   	if (ext == NULL) {
#  179|-> 		warnx("svc_vc_create: out of memory");
#  180|   		goto cleanup_svc_vc_create;
#  181|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
libtirpc-1.3.7/src/svc_vc.c:194:17: warning[-Wanalyzer-malloc-leak]: leak of 'ext'
libtirpc-1.3.7/src/svc_vc.c:161:12: branch_false: following 'false' branch (when 'r' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:165:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:165:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_vc.c:169:23: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:173:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:177:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:177:15: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:178:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:183:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:193:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_vc.c:194:17: branch_true: ...to here
libtirpc-1.3.7/src/svc_vc.c:194:17: danger: 'ext' leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
#  192|   	slen = sizeof (struct sockaddr_storage);
#  193|   	if (getsockname(fd, (struct sockaddr *)(void *)&sslocal, &slen) < 0) {
#  194|-> 		warnx("svc_vc_create: could not retrieve local addr");
#  195|   		goto cleanup_svc_vc_create;
#  196|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
libtirpc-1.3.7/src/svc_vc.c:194:17: warning[-Wanalyzer-malloc-leak]: leak of 'r'
libtirpc-1.3.7/src/svc_vc.c:160:13: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:161:12: branch_false: following 'false' branch (when 'r' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:165:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:165:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_vc.c:169:23: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:173:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:177:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:178:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:183:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:193:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_vc.c:194:17: branch_true: ...to here
libtirpc-1.3.7/src/svc_vc.c:194:17: danger: 'r' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  192|   	slen = sizeof (struct sockaddr_storage);
#  193|   	if (getsockname(fd, (struct sockaddr *)(void *)&sslocal, &slen) < 0) {
#  194|-> 		warnx("svc_vc_create: could not retrieve local addr");
#  195|   		goto cleanup_svc_vc_create;
#  196|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
libtirpc-1.3.7/src/svc_vc.c:194:17: warning[-Wanalyzer-malloc-leak]: leak of 'xprt'
libtirpc-1.3.7/src/svc_vc.c:161:12: branch_false: following 'false' branch (when 'r' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:165:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:165:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_vc.c:169:23: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:172:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:173:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:177:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:178:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:183:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:193:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/svc_vc.c:194:17: branch_true: ...to here
libtirpc-1.3.7/src/svc_vc.c:194:17: danger: 'xprt' leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
#  192|   	slen = sizeof (struct sockaddr_storage);
#  193|   	if (getsockname(fd, (struct sockaddr *)(void *)&sslocal, &slen) < 0) {
#  194|-> 		warnx("svc_vc_create: could not retrieve local addr");
#  195|   		goto cleanup_svc_vc_create;
#  196|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
libtirpc-1.3.7/src/svc_vc.c:198:14: warning[-Wanalyzer-malloc-leak]: leak of 'ext'
libtirpc-1.3.7/src/svc_vc.c:161:12: branch_false: following 'false' branch (when 'r' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:165:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:165:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_vc.c:169:23: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:173:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:177:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:177:15: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:178:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:183:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:193:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_vc.c:198:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:198:14: danger: 'ext' leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
#  196|   	}
#  197|   
#  198|-> 	if (!__rpc_set_netbuf(&xprt->xp_ltaddr, &sslocal, sizeof(sslocal))) {
#  199|   		warnx("svc_vc_create: no mem for local addr");
#  200|   		goto cleanup_svc_vc_create;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
libtirpc-1.3.7/src/svc_vc.c:198:14: warning[-Wanalyzer-malloc-leak]: leak of 'r'
libtirpc-1.3.7/src/svc_vc.c:160:13: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:161:12: branch_false: following 'false' branch (when 'r' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:165:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:165:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_vc.c:169:23: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:173:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:177:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:178:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:183:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:193:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_vc.c:198:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:198:14: danger: 'r' leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  196|   	}
#  197|   
#  198|-> 	if (!__rpc_set_netbuf(&xprt->xp_ltaddr, &sslocal, sizeof(sslocal))) {
#  199|   		warnx("svc_vc_create: no mem for local addr");
#  200|   		goto cleanup_svc_vc_create;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
libtirpc-1.3.7/src/svc_vc.c:198:14: warning[-Wanalyzer-malloc-leak]: leak of 'xprt'
libtirpc-1.3.7/src/svc_vc.c:161:12: branch_false: following 'false' branch (when 'r' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:165:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:165:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_vc.c:169:23: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:172:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:173:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:177:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:178:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:183:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:193:12: branch_false: following 'false' branch...
libtirpc-1.3.7/src/svc_vc.c:198:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:198:14: danger: 'xprt' leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
#  196|   	}
#  197|   
#  198|-> 	if (!__rpc_set_netbuf(&xprt->xp_ltaddr, &sslocal, sizeof(sslocal))) {
#  199|   		warnx("svc_vc_create: no mem for local addr");
#  200|   		goto cleanup_svc_vc_create;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
libtirpc-1.3.7/src/svc_vc.c:295:17: warning[-Wanalyzer-malloc-leak]: leak of 'xprt'
libtirpc-1.3.7/src/svc_vc.c:285:9: branch_true: following 'true' branch (when 'fd != -1')...
libtirpc-1.3.7/src/svc_vc.c:287:16: branch_true: ...to here
libtirpc-1.3.7/src/svc_vc.c:287:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:288:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:293:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:294:12: branch_true: following 'true' branch (when 'ext' is NULL)...
libtirpc-1.3.7/src/svc_vc.c:295:17: branch_true: ...to here
libtirpc-1.3.7/src/svc_vc.c:295:17: danger: 'xprt' leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
#  293|   	ext = mem_alloc(sizeof (*ext));
#  294|   	if (ext == NULL) {
#  295|-> 		warnx("svc_vc: makefd_xprt: out of memory");
#  296|   		mem_free(xprt, sizeof(SVCXPRT));
#  297|   		xprt = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
libtirpc-1.3.7/src/svc_vc.c:303:17: warning[-Wanalyzer-malloc-leak]: leak of 'ext'
libtirpc-1.3.7/src/svc_vc.c:285:9: branch_true: following 'true' branch (when 'fd != -1')...
libtirpc-1.3.7/src/svc_vc.c:287:16: branch_true: ...to here
libtirpc-1.3.7/src/svc_vc.c:288:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:293:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:293:15: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:294:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:301:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:302:12: branch_true: following 'true' branch (when 'cd' is NULL)...
libtirpc-1.3.7/src/svc_vc.c:303:17: branch_true: ...to here
libtirpc-1.3.7/src/svc_vc.c:303:17: danger: 'ext' leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
#  301|   	cd = mem_alloc(sizeof(struct cf_conn));
#  302|   	if (cd == NULL) {
#  303|-> 		warnx("svc_vc: makefd_xprt: out of memory");
#  304|   		mem_free(ext, sizeof(*ext));
#  305|   		mem_free(xprt, sizeof(SVCXPRT));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
libtirpc-1.3.7/src/svc_vc.c:303:17: warning[-Wanalyzer-malloc-leak]: leak of 'xprt'
libtirpc-1.3.7/src/svc_vc.c:285:9: branch_true: following 'true' branch (when 'fd != -1')...
libtirpc-1.3.7/src/svc_vc.c:287:16: branch_true: ...to here
libtirpc-1.3.7/src/svc_vc.c:287:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:288:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:293:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:294:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:301:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:302:12: branch_true: following 'true' branch (when 'cd' is NULL)...
libtirpc-1.3.7/src/svc_vc.c:303:17: branch_true: ...to here
libtirpc-1.3.7/src/svc_vc.c:303:17: danger: 'xprt' leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
#  301|   	cd = mem_alloc(sizeof(struct cf_conn));
#  302|   	if (cd == NULL) {
#  303|-> 		warnx("svc_vc: makefd_xprt: out of memory");
#  304|   		mem_free(ext, sizeof(*ext));
#  305|   		mem_free(xprt, sizeof(SVCXPRT));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
libtirpc-1.3.7/src/svc_vc.c:310:9: warning[-Wanalyzer-malloc-leak]: leak of 'cd'
libtirpc-1.3.7/src/svc_vc.c:285:9: branch_true: following 'true' branch (when 'fd != -1')...
libtirpc-1.3.7/src/svc_vc.c:287:16: branch_true: ...to here
libtirpc-1.3.7/src/svc_vc.c:288:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:293:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:294:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:301:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:301:14: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:302:12: branch_false: following 'false' branch (when 'cd' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:309:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:310:9: danger: 'cd' leaks here; was allocated at [(7)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/6)
#  308|   	}
#  309|   	cd->strm_stat = XPRT_IDLE;
#  310|-> 	xdrrec_create(&(cd->xdrs), sendsize, recvsize,
#  311|   	    xprt, read_vc, write_vc);
#  312|   	xprt->xp_p1 = cd;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
libtirpc-1.3.7/src/svc_vc.c:310:9: warning[-Wanalyzer-malloc-leak]: leak of 'ext'
libtirpc-1.3.7/src/svc_vc.c:285:9: branch_true: following 'true' branch (when 'fd != -1')...
libtirpc-1.3.7/src/svc_vc.c:287:16: branch_true: ...to here
libtirpc-1.3.7/src/svc_vc.c:288:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:293:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:293:15: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:294:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:301:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:302:12: branch_false: following 'false' branch (when 'cd' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:309:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:310:9: danger: 'ext' leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
#  308|   	}
#  309|   	cd->strm_stat = XPRT_IDLE;
#  310|-> 	xdrrec_create(&(cd->xdrs), sendsize, recvsize,
#  311|   	    xprt, read_vc, write_vc);
#  312|   	xprt->xp_p1 = cd;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
libtirpc-1.3.7/src/svc_vc.c:310:9: warning[-Wanalyzer-malloc-leak]: leak of 'xprt'
libtirpc-1.3.7/src/svc_vc.c:285:9: branch_true: following 'true' branch (when 'fd != -1')...
libtirpc-1.3.7/src/svc_vc.c:287:16: branch_true: ...to here
libtirpc-1.3.7/src/svc_vc.c:287:16: acquire_memory: allocated here
libtirpc-1.3.7/src/svc_vc.c:288:12: branch_false: following 'false' branch (when 'xprt' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:293:15: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:294:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:301:14: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:302:12: branch_false: following 'false' branch (when 'cd' is non-NULL)...
libtirpc-1.3.7/src/svc_vc.c:309:9: branch_false: ...to here
libtirpc-1.3.7/src/svc_vc.c:310:9: danger: 'xprt' leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
#  308|   	}
#  309|   	cd->strm_stat = XPRT_IDLE;
#  310|-> 	xdrrec_create(&(cd->xdrs), sendsize, recvsize,
#  311|   	    xprt, read_vc, write_vc);
#  312|   	xprt->xp_p1 = cd;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
libtirpc-1.3.7/src/xdr_rec.c:781:17: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libtirpc-1.3.7/src/xdr_rec.c:524:1: enter_function: entry to '__xdrrec_getrec'
libtirpc-1.3.7/src/xdr_rec.c:533:12: branch_true: following 'true' branch...
libtirpc-1.3.7/src/xdr_rec.c:534:21: branch_true: ...to here
libtirpc-1.3.7/src/xdr_rec.c:536:20: branch_false: following 'false' branch (when 'n != 0')...
libtirpc-1.3.7/src/xdr_rec.c:546:20: branch_false: ...to here
libtirpc-1.3.7/src/xdr_rec.c:546:20: branch_false: following 'false' branch (when 'n >= 0')...
libtirpc-1.3.7/src/xdr_rec.c:550:17: branch_false: ...to here
libtirpc-1.3.7/src/xdr_rec.c:552:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/xdr_rec.c:556:36: branch_false: ...to here
libtirpc-1.3.7/src/xdr_rec.c:558:20: branch_false: following 'false' branch...
libtirpc-1.3.7/src/xdr_rec.c:564:20: branch_true: following 'true' branch...
libtirpc-1.3.7/src/xdr_rec.c:565:25: branch_true: ...to here
libtirpc-1.3.7/src/xdr_rec.c:565:25: call_function: calling 'realloc_stream' from '__xdrrec_getrec'
#  779|   		rstrm->in_boundry = buf + size;
#  780|   		rstrm->recvsize = size;
#  781|-> 		rstrm->in_size = size;
#  782|   	}
#  783|   

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-203.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-namelibtirpc-1.3.7-0.fc44
store-results-to/tmp/tmp1tr6y3bx/libtirpc-1.3.7-0.fc44.tar.xz
time-created2025-10-28 19:19:40
time-finished2025-10-28 19:21:53
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp1tr6y3bx/libtirpc-1.3.7-0.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp1tr6y3bx/libtirpc-1.3.7-0.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9