Task #152240 - added.err

back to task #152240
download
Error: GCC_ANALYZER_WARNING (CWE-775):
xfsprogs-7.3.0/quota/init.c:136:35: warning[-Wanalyzer-fd-leak]: leak of file descriptor
xfsprogs-7.3.0/quota/init.c:136:21: branch_true: following ‘true’ branch...
xfsprogs-7.3.0/quota/init.c:137:29: branch_true: ...to here
xfsprogs-7.3.0/quota/init.c:137:20: branch_true: following ‘true’ branch...
xfsprogs-7.3.0/quota/init.c:139:51: branch_true: ...to here
xfsprogs-7.3.0/quota/init.c:139:46: acquire_resource: opened here
xfsprogs-7.3.0/quota/init.c:136:21: branch_true: following ‘true’ branch...
xfsprogs-7.3.0/quota/init.c:137:29: branch_true: ...to here
xfsprogs-7.3.0/quota/init.c:137:20: branch_true: following ‘true’ branch...
xfsprogs-7.3.0/quota/init.c:139:51: branch_true: ...to here
xfsprogs-7.3.0/quota/init.c:136:21: branch_true: following ‘true’ branch...
xfsprogs-7.3.0/quota/init.c:137:29: branch_true: ...to here
xfsprogs-7.3.0/quota/init.c:136:35: danger: leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  134|   	int		c;
#  135|   
#  136|-> 	for (c = 0; c < fs_count; c++) {
#  137|   		if (fs_table[c].mnt_fd < 0) {
#  138|   			/* if this fails, we fall back to path-based quotactl */