Task #152250 - added.err
back to task #152250download
Error: GCC_ANALYZER_WARNING (CWE-775): zchunk-1.5.5/test/read_limits.c:76:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’ zchunk-1.5.5/test/read_limits.c:70:14: acquire_resource: opened here zchunk-1.5.5/test/read_limits.c:71:7: branch_false: following ‘false’ branch... zchunk-1.5.5/test/read_limits.c:75:19: branch_false: ...to here zchunk-1.5.5/test/read_limits.c:76:7: danger: ‘open(path, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) # 74| } # 75| zckCtx *zck = zck_create(); # 76|-> if(zck == NULL || !zck_init_adv_read(zck, in)) # 77| exit(1); # 78| if(chunk_max > 0 && !zck_set_ioption(zck, ZCK_CHUNK_MAX, chunk_max))