[dev] New Defects reported by Coverity Scan for freerangerouting/frr

scan-admin at coverity.com scan-admin at coverity.com
Mon Mar 19 11:47:13 EDT 2018


Hi,

Please find the latest report on new defect(s) introduced to freerangerouting/frr found with Coverity Scan.

1 new defect(s) introduced to freerangerouting/frr found with Coverity Scan.
1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 1465679:    (RESOURCE_LEAK)
/zebra/zebra_vty.c: 256 in zebra_static_route_holdem()
/zebra/zebra_vty.c: 256 in zebra_static_route_holdem()


________________________________________________________________________________________________________
*** CID 1465679:    (RESOURCE_LEAK)
/zebra/zebra_vty.c: 256 in zebra_static_route_holdem()
250     		}
251     
252     		/*
253     		 * If a person enters the same line again
254     		 * we need to silently accept it
255     		 */
>>>     CID 1465679:    (RESOURCE_LEAK)
>>>     Variable "shr" going out of scope leaks the storage it points to.
256     		return CMD_SUCCESS;
257     	}
258     
259     	listnode_add_sort(static_list, shr);
260     
261     	return CMD_SUCCESS;
/zebra/zebra_vty.c: 256 in zebra_static_route_holdem()
250     		}
251     
252     		/*
253     		 * If a person enters the same line again
254     		 * we need to silently accept it
255     		 */
>>>     CID 1465679:    (RESOURCE_LEAK)
>>>     Variable "shr" going out of scope leaks the storage it points to.
256     		return CMD_SUCCESS;
257     	}
258     
259     	listnode_add_sort(static_list, shr);
260     
261     	return CMD_SUCCESS;


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRa7dJ8klHLUFWVd2fqpS-2B-2FHaN43B-2FQ11ntcKmbKat2WeHs8691VOJpZofPkpp-2BRBqc-3D_d-2Fi2nRutHp-2FDWtw8JRg-2Bc1m9CS4-2B5uVbodfDyLsp-2FJmycqJVwhWAnQJ3c9wrW8-2BtrsJ-2FV3XAS7dwR-2BIxoLg5Fql8m7pJ3wRZ50YeE6Y9yO3EkPQD3gDWk-2FA8vYpFNs2PTOdHoZy3sBBGwdjfnEtL-2B296Zuoj290wEEMeefqvuaKzfCRwmT-2BYG5SKZNK5-2BZJDd9OZXhNcXqabaDLTHO2XfQ-3D-3D




More information about the dev mailing list