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

scan-admin at coverity.com scan-admin at coverity.com
Tue Apr 3 22:13:59 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.


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


** CID 1467453:  Resource leaks  (RESOURCE_LEAK)
/vtysh/vtysh.c: 318 in vtysh_execute_func()


________________________________________________________________________________________________________
*** CID 1467453:  Resource leaks  (RESOURCE_LEAK)
/vtysh/vtysh.c: 318 in vtysh_execute_func()
312     	if (vline == NULL)
313     		return CMD_SUCCESS;
314     
315     	if (user_mode) {
316     		if (strncmp("en", vector_slot(vline, 0), 2) == 0) {
317     			fprintf(stdout, "%% Command not allowed: enable\n");
>>>     CID 1467453:  Resource leaks  (RESOURCE_LEAK)
>>>     Variable "vline" going out of scope leaks the storage it points to.
318     			return CMD_WARNING;
319     		}
320     	}
321     
322     	saved_ret = ret = cmd_execute_command(vline, vty, &cmd, 1);
323     	saved_node = vty->node;


________________________________________________________________________________________________________
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-2FJlTJgOzo1t1pK34cPb0LQ9NhU8L-2BW8pneK3sIsYYaRBPqOaL-2BK1sp4eh1mwBjygb1itXDzHPToY3ROlYDWup024IBUS6R6bep5rSdOccSYynAavKVxG7wRGY7iAymZ4Thl9yyEHDHNMTBQxsGnbra-2F6ktdIWhHFxcBYY-2BcvXG2mLA-3D-3D




More information about the dev mailing list