Task #91082 - added.err

back to task #91082
download
Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.9.0/src/libkbdfile/kbdfile.c:193:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&*fp.pathname, "r")'
kbd-2.9.0/src/libkbdfile/kbdfile.c:241:1: enter_function: entry to 'maybe_pipe_open'
kbd-2.9.0/src/libkbdfile/kbdfile.c:258:38: branch_true: following 'true' branch...
kbd-2.9.0/src/libkbdfile/kbdfile.c:259:27: branch_true: ...to here
kbd-2.9.0/src/libkbdfile/kbdfile.c:265:22: call_function: calling 'open_pathname' from 'maybe_pipe_open'
#  191|   	}
#  192|   
#  193|-> 	fp->flags &= ~KBDFILE_PIPE;
#  194|   	fp->flags &= ~KBDFILE_COMPRESSED;
#  195|   

Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.9.0/src/libkbdfile/kbdfile.c:193:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&*fp.pathname, "r")'
kbd-2.9.0/src/libkbdfile/kbdfile.c:241:1: enter_function: entry to 'maybe_pipe_open'
kbd-2.9.0/src/libkbdfile/kbdfile.c:258:38: branch_true: following 'true' branch...
kbd-2.9.0/src/libkbdfile/kbdfile.c:259:27: branch_true: ...to here
kbd-2.9.0/src/libkbdfile/kbdfile.c:265:22: call_function: calling 'open_pathname' from 'maybe_pipe_open'
#  191|   	}
#  192|   
#  193|-> 	fp->flags &= ~KBDFILE_PIPE;
#  194|   	fp->flags &= ~KBDFILE_COMPRESSED;
#  195|   

Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:35:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/charset-keymap0.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:19:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:22:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:23:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:26:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:31:13: acquire_resource: opened here
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:32:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:35:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/charset-keymap0.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   33|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/charset-keymap0.map: %s", strerror(errno));
#   34|   
#   35|-> 	kbdfile_set_file(fp, f);
#   36|   
#   37|   	if (lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:35:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/charset-keymap0.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:19:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:22:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:23:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:26:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:31:13: acquire_memory: allocated here
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:32:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:35:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/charset-keymap0.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   33|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/charset-keymap0.map: %s", strerror(errno));
#   34|   
#   35|-> 	kbdfile_set_file(fp, f);
#   36|   
#   37|   	if (lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:61:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap0.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:45:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:48:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:49:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:52:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:57:13: acquire_resource: opened here
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:58:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:61:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:61:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap0.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   59|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap0.map: %s", strerror(errno));
#   60|   
#   61|-> 	kbdfile_set_file(fp, f);
#   62|   
#   63|   	if (lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:61:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap0.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:45:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:48:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:49:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:52:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:57:13: acquire_memory: allocated here
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:58:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:61:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:61:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap0.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   59|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap0.map: %s", strerror(errno));
#   60|   
#   61|-> 	kbdfile_set_file(fp, f);
#   62|   
#   63|   	if (lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:35:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap1.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:19:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:22:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:23:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:26:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:31:13: acquire_resource: opened here
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:32:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:35:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap1.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   33|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap1.map: %s", strerror(errno));
#   34|   
#   35|-> 	kbdfile_set_file(fp, f);
#   36|   
#   37|   	if(lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:35:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap1.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:19:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:22:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:23:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:26:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:31:13: acquire_memory: allocated here
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:32:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:35:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap1.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   33|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap1.map: %s", strerror(errno));
#   34|   
#   35|-> 	kbdfile_set_file(fp, f);
#   36|   
#   37|   	if(lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:35:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap2.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:19:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:22:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:23:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:26:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:31:13: acquire_resource: opened here
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:32:11: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:35:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap2.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   33|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap2.map: %s", strerror(errno));
#   34|   
#   35|-> 	kbdfile_set_file(fp, f);
#   36|   
#   37|   	if (lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:35:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap2.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:19:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:22:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:23:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:26:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:31:13: acquire_memory: allocated here
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:32:11: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:35:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap2.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   33|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap2.map: %s", strerror(errno));
#   34|   
#   35|-> 	kbdfile_set_file(fp, f);
#   36|   
#   37|   	if (lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:36:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap3.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:20:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:23:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:24:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:27:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:32:13: acquire_resource: opened here
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:33:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:36:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:36:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap3.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   34|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "data/libkeymap/keymap3.map: %s", strerror(errno));
#   35|   
#   36|-> 	kbdfile_set_file(fp, f);
#   37|   
#   38|   	if (lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:36:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap3.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:20:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:23:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:24:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:27:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:32:13: acquire_memory: allocated here
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:33:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:36:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:36:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap3.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   34|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "data/libkeymap/keymap3.map: %s", strerror(errno));
#   35|   
#   36|-> 	kbdfile_set_file(fp, f);
#   37|   
#   38|   	if (lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:37:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap4.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:21:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:24:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:25:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:28:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:33:13: acquire_resource: opened here
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:34:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:37:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:37:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap4.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   35|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap4.map: %s", strerror(errno));
#   36|   
#   37|-> 	kbdfile_set_file(fp, f);
#   38|   
#   39|   	if (lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:37:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap4.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:21:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:24:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:25:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:28:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:33:13: acquire_memory: allocated here
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:34:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:37:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:37:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap4.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   35|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap4.map: %s", strerror(errno));
#   36|   
#   37|-> 	kbdfile_set_file(fp, f);
#   38|   
#   39|   	if (lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:36:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap5.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:20:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:23:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:24:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:27:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:32:13: acquire_resource: opened here
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:33:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:36:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:36:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap5.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   34|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap5.map: %s", strerror(errno));
#   35|   
#   36|-> 	kbdfile_set_file(fp, f);
#   37|   
#   38|   	if (lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:36:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap5.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:20:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:23:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:24:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:27:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:32:13: acquire_memory: allocated here
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:33:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:36:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:36:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap5.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   34|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap5.map: %s", strerror(errno));
#   35|   
#   36|-> 	kbdfile_set_file(fp, f);
#   37|   
#   38|   	if (lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:35:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap6.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:19:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:22:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:23:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:26:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:31:13: acquire_resource: opened here
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:32:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:35:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap6.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   33|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap6.map: %s", strerror(errno));
#   34|   
#   35|-> 	kbdfile_set_file(fp, f);
#   36|   
#   37|   	if (lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:35:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap6.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:19:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:22:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:23:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:26:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:31:13: acquire_memory: allocated here
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:32:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:35:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap6.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   33|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap6.map: %s", strerror(errno));
#   34|   
#   35|-> 	kbdfile_set_file(fp, f);
#   36|   
#   37|   	if (lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:34:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap0.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:18:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:21:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:22:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:25:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:30:13: acquire_resource: opened here
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:31:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:34:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:34:9: throw: if ‘kbdfile_set_file’ throws an exception...
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:34:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap0.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   32|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap0.map: %s", strerror(errno));
#   33|   
#   34|-> 	kbdfile_set_file(fp, f);
#   35|   
#   36|   	if (lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:34:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap0.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:18:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:21:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:22:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:25:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:30:13: acquire_memory: allocated here
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:31:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:34:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:34:9: throw: if ‘kbdfile_set_file’ throws an exception...
kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:34:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap0.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   32|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap0.map: %s", strerror(errno));
#   33|   
#   34|-> 	kbdfile_set_file(fp, f);
#   35|   
#   36|   	if (lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:35:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap7.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:19:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:22:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:23:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:26:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:31:13: acquire_resource: opened here
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:32:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:35:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap7.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   33|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap7.map: %s", strerror(errno));
#   34|   
#   35|-> 	kbdfile_set_file(fp, f);
#   36|   
#   37|   	if (lk_parse_keymap(ctx, fp) != 0)

Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:35:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap7.map", "r")’
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:19:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:22:14: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:23:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:26:15: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:31:13: acquire_memory: allocated here
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:32:12: branch_false: following ‘false’ branch...
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:35:9: branch_false: ...to here
kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.9.0/tests/data/libkeymap/keymap7.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   33|   		kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap7.map: %s", strerror(errno));
#   34|   
#   35|-> 	kbdfile_set_file(fp, f);
#   36|   
#   37|   	if (lk_parse_keymap(ctx, fp) != 0)