Some cleanup in get_refs_via_curl()
PATCH 7/18 Some cleanup in get_refs_via_curl()
Signed-off-by Mike Hommey <[email protected]>
Signed-off-by Tay Ray Chuan <[email protected]>
--- transport.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
transport.c +1 -0
@@ -519,6 +519,7 @@ static struct ref *get_refs_via_curl(struct transport *transport, int for_push)free (ref); } +free (refs_url);return refs; }
--
1.6.3.1
Quoted 2 lines · Tay Ray Chuan
Signed-off-by Mike Hommey <[email protected]>Signed-off-by Tay Ray Chuan <[email protected]>
The same comment as 06/18 on attribution apllies.
Be specific when you can without going to too verbose. In this case, instead of wasting two meaningless words "Some cleanup", you can say:
Subject: transport.c::get_refs_via_curl(): do not leak refs_url
Quoted 17 lines
transport.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)transport.c +1
-1@@ -519,6 +519,7 @@ static struct ref *get_refs_via_curl(struct transport *transport, int for_push)free (ref); } +free (refs_url);return refs; } --1.6.3.1