Commit 4b9d124
submodule--helper: "struct pathspec" memory leak in module_update()
The module_update() function calls module_list_compute() twice, which
in turn will reset the "struct pathspec" passed to it. Let's instead
track two of them, and clear them both.
Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]>
Reviewed-by: Glen Choo <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 8fb201d commit 4b9d124
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2561 | 2561 | | |
2562 | 2562 | | |
2563 | 2563 | | |
| 2564 | + | |
2564 | 2565 | | |
2565 | 2566 | | |
2566 | 2567 | | |
| |||
2649 | 2650 | | |
2650 | 2651 | | |
2651 | 2652 | | |
2652 | | - | |
| 2653 | + | |
2653 | 2654 | | |
2654 | 2655 | | |
2655 | 2656 | | |
| |||
2672 | 2673 | | |
2673 | 2674 | | |
2674 | 2675 | | |
| 2676 | + | |
2675 | 2677 | | |
2676 | 2678 | | |
2677 | 2679 | | |
| |||
0 commit comments