Task #112090 - added.err

back to task #112090
download
Error: GCC_ANALYZER_WARNING (CWE-401):
coreutils-9.11/lib/regex_internal.c:951:3: warning[-Wanalyzer-malloc-leak]: leak of '*set.elems'
coreutils-9.11/lib/regexec.c:3187:1: enter_function: entry to 'check_arrival_expand_ecl_sub'
coreutils-9.11/lib/regexec.c:3191:27: branch_true: following 'true' branch...
coreutils-9.11/lib/regexec.c:3195:11: branch_true: ...to here
coreutils-9.11/lib/regexec.c:3195:10: branch_true: following 'true' branch...
coreutils-9.11/lib/regexec.c:3196:14: branch_true: ...to here
coreutils-9.11/lib/regexec.c:3195:11: branch_false: following 'false' branch...
coreutils-9.11/lib/regexec.c:3206:12: branch_false: ...to here
coreutils-9.11/lib/regexec.c:3206:12: call_function: calling 're_node_set_insert' from 'check_arrival_expand_ecl_sub'
coreutils-9.11/lib/regexec.c:3206:12: return_function: returning to 'check_arrival_expand_ecl_sub' from 're_node_set_insert'
coreutils-9.11/lib/regexec.c:3207:10: branch_false: following 'false' branch...
coreutils-9.11/lib/regexec.c:3209:11: branch_false: ...to here
coreutils-9.11/lib/regexec.c:3209:10: branch_false: following 'false' branch...
coreutils-9.11/lib/regexec.c:3211:10: branch_false: ...to here
coreutils-9.11/lib/regexec.c:3211:10: branch_true: following 'true' branch...
coreutils-9.11/lib/regexec.c:3215:47: branch_true: ...to here
coreutils-9.11/lib/regexec.c:3214:17: call_function: calling 'check_arrival_expand_ecl_sub' from 'check_arrival_expand_ecl_sub'
coreutils-9.11/lib/regexec.c:3214:17: return_function: returning to 'check_arrival_expand_ecl_sub' from 'check_arrival_expand_ecl_sub'
coreutils-9.11/lib/regexec.c:3217:14: branch_false: following 'false' branch...
coreutils-9.11/lib/regexec.c:3220:18: branch_false: ...to here
coreutils-9.11/lib/regexec.c:3191:28: call_function: calling 're_node_set_contains' from 'check_arrival_expand_ecl_sub'
coreutils-9.11/lib/regexec.c:3191:28: return_function: returning to 'check_arrival_expand_ecl_sub' from 're_node_set_contains'
coreutils-9.11/lib/regexec.c:3191:27: branch_true: following 'true' branch...
coreutils-9.11/lib/regexec.c:3195:11: branch_true: ...to here
coreutils-9.11/lib/regexec.c:3206:12: call_function: calling 're_node_set_insert' from 'check_arrival_expand_ecl_sub'
#  949|     set->alloc = 1;
#  950|     set->nelem = 1;
#  951|->   set->elems = re_malloc (Idx, 1);
#  952|     if (__glibc_unlikely (set->elems == NULL))
#  953|       {