Task #91690 - added.err
back to task #91690download
Error: GCC_ANALYZER_WARNING (CWE-401): patch-2.8/src/inp.c:206:22: warning[-Wanalyzer-malloc-leak]: leak of 's' patch-2.8/src/inp.c:172:6: branch_false: following 'false' branch... patch-2.8/src/inp.c:201:21: branch_false: ...to here patch-2.8/src/inp.c:204:33: branch_false: following 'false' branch (when 's' is NULL)... patch-2.8/src/inp.c:206:22: branch_false: ...to here patch-2.8/src/inp.c:206:22: throw: if 'xireallocarray' throws an exception... patch-2.8/src/inp.c:206:22: danger: 's' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) # 204| for (char const *s = buffer; (s = memchr (s, '\n', lim - s)); s++) # 205| iline++; # 206|-> char const **ptr = xireallocarray (nullptr, iline, sizeof *ptr); # 207| iline = 0; # 208| for (char const *s = buffer; ; s++)