New Defects reported by Coverity Scan for batctl

scan-admin at coverity.com scan-admin at coverity.com
Wed Oct 19 00:12:07 CEST 2016


Hi,

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

1 new defect(s) introduced to batctl found with Coverity Scan.


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


** CID 153451:  Resource leaks  (RESOURCE_LEAK)
/tcpdump.c: 1304 in tcpdump()


________________________________________________________________________________________________________
*** CID 153451:  Resource leaks  (RESOURCE_LEAK)
/tcpdump.c: 1304 in tcpdump()
1298     			fflush(stdout);
1299     		}
1300     
1301     	}
1302     
1303     out:
>>>     CID 153451:  Resource leaks  (RESOURCE_LEAK)
>>>     Overwriting "dump_if" in "dump_if = ({...})" leaks the storage that "dump_if" points to.
1304     	list_for_each_entry_safe(dump_if, dump_if_tmp, &dump_if_list, list) {
1305     		if (dump_if->raw_sock >= 0)
1306     			close(dump_if->raw_sock);
1307     
1308     		list_del(&dump_if->list);
1309     		free(dump_if);


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRaf2kC06LPgo9S999hFzU2D-2BXol8XmCHTkNzPyF166zJA-3D-3D_oDb6ny51mUB6FExYn3rQhmsnReyYRZCwTKHw9WoBEsNnh8nxYFbqN6LhqJN1pxVFbsb9MdSoNap5LK8QwEh4e16uN26yn29ctTrb8g0byCNGmbzQ8SicUtgRcV77Qce-2ByPUxow1r9BxyGKNRkaXnb2udvxt8nijb3zaq0TvqZ664s1lrPV4kzwZc2D6PE34ap5Vd7oAQstJWo8NEVS4dJN9EaPw6oh0BqCxbd50CUCA-3D

To manage Coverity Scan email notifications for "linux-merge at lists.open-mesh.org", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4ItjzSeu3-2FD8QYXPKYkkxjcD-2BeuajDNPjh0rZRwtiVLSympUHXnLxAx-2BOCQq-2FfdoFWoyJ6jsYkZot-2FEd2gRhuvRF0f-2F-2BzqJsqv2EFdr-2BhbxWV9Qc7LEXHjWaTgeKz85BQ_oDb6ny51mUB6FExYn3rQhmsnReyYRZCwTKHw9WoBEsNnh8nxYFbqN6LhqJN1pxVFbsb9MdSoNap5LK8QwEh4e0SXGTa7Ob2cS3waSpvrcarcYNUIczekeWyepZH1FE-2BVtSvt94GCcAFuv5D3Ld5w4WX8uJivVo9i88ehZQwEIomX5tK66N7LCdYWXdUcOA-2BiVJU6AKbXGQuVoF-2B4EOMqYVyGm9yMTTLTkWI2J3ovGBk-3D



More information about the linux-merge mailing list