grafts: fix memory leak if replacing pre-existing graft
If replacing an already existing graft in the grafts map, then we need to free the previous `git_commit_graft` structure.
Showing
Please
register
or
sign in
to comment
If replacing an already existing graft in the grafts map, then we need to free the previous `git_commit_graft` structure.