Commit 4db7dbd
git_config_rename_section_in_file(): avoid resource leak
In case of errors, we really want the file descriptor to be closed.
Discovered by a Coverity scan.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 5748693 commit 4db7dbd
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2621 | 2621 | | |
2622 | 2622 | | |
2623 | 2623 | | |
2624 | | - | |
| 2624 | + | |
2625 | 2625 | | |
2626 | 2626 | | |
2627 | 2627 | | |
| |||
2703 | 2703 | | |
2704 | 2704 | | |
2705 | 2705 | | |
| 2706 | + | |
2706 | 2707 | | |
2707 | 2708 | | |
2708 | 2709 | | |
2709 | 2710 | | |
2710 | 2711 | | |
| 2712 | + | |
| 2713 | + | |
2711 | 2714 | | |
2712 | 2715 | | |
2713 | 2716 | | |
| |||
0 commit comments