Commit 77c8ee7
committed
checkout: fix double-free of checkout_data's mkdir_map
We currently call `git_strmap_free` on `checkout_data.mkdir_map` in the
`checkout_data_clear` function. The only thing protecting us from a
double-free is that the `git_strmap_free` function is in fact not a
function, but a macro that also sets the map to NULL.
Remove the second call to `git_strmap_free` and explicitly set the map
member to NULL.1 parent 6dfb983 commit 77c8ee7
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2319 | 2319 | | |
2320 | 2320 | | |
2321 | 2321 | | |
2322 | | - | |
2323 | | - | |
2324 | 2322 | | |
2325 | 2323 | | |
2326 | 2324 | | |
2327 | 2325 | | |
2328 | 2326 | | |
2329 | 2327 | | |
2330 | 2328 | | |
| 2329 | + | |
2331 | 2330 | | |
2332 | 2331 | | |
2333 | 2332 | | |
| |||
0 commit comments