summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-05-08 20:16:56 -0500
committerJunio C Hamano <gitster@pobox.com>2013-05-09 11:33:01 -0700
commitb120ef3eac677762427631d5ae7372402a80b837 (patch)
tree0fea8c71a7344405fedba6af0d549eec1d93a30d
parent571cdfd4e0a4cc24e215a5d5f0cb24292a9d7929 (diff)
downloadgit-b120ef3eac677762427631d5ae7372402a80b837.tar.gz
transport-helper: trivial style cleanup
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--transport-helper.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/transport-helper.c b/transport-helper.c
index dcd8d97411..fdd79d8b35 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -211,9 +211,8 @@ static struct child_process *get_helper(struct transport *transport)
int i;
data->refspec_nr = refspec_nr;
data->refspecs = parse_fetch_refspec(refspec_nr, refspecs);
- for (i = 0; i < refspec_nr; i++) {
+ for (i = 0; i < refspec_nr; i++)
free((char *)refspecs[i]);
- }
free(refspecs);
}
strbuf_release(&buf);