Skip to content

fix a leak in submodule error path

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2repository: make repo_clear() idempotentrepository.c+2 -15 replies
2/2submodule--helper: free URL when repository setup failsbuiltin/submodule--helper.c t/t7426-submodule-get-default-remote.sh+24 -31 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] fix a leak in submodule error path

This fixes a small leak noticed by Coverity. I think it has been there for a while, but nearby code movement caused it to be marked as "new".

[1/2]: repository: make repo_clear() idempotent [2/2]: submodule--helper: free URL when repository setup fails

 builtin/submodule--helper.c             | 10 +++++++---
 repository.c                            |  3 ++-
 t/t7426-submodule-get-default-remote.sh | 17 +++++++++++++++++
 3 files changed, 26 insertions(+), 4 deletions(-)

-Peff