summaryrefslogtreecommitdiff
path: root/transport-helper.c
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-05-09 01:16:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-05-09 18:33:01 (GMT)
commitb120ef3eac677762427631d5ae7372402a80b837 (patch)
tree0fea8c71a7344405fedba6af0d549eec1d93a30d /transport-helper.c
parent571cdfd4e0a4cc24e215a5d5f0cb24292a9d7929 (diff)
downloadgit-b120ef3eac677762427631d5ae7372402a80b837.zip
git-b120ef3eac677762427631d5ae7372402a80b837.tar.gz
git-b120ef3eac677762427631d5ae7372402a80b837.tar.bz2
transport-helper: trivial style cleanup
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport-helper.c')
-rw-r--r--transport-helper.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/transport-helper.c b/transport-helper.c
index dcd8d97..fdd79d8 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);