summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 72ff894)
raw | patch | inline | side by side (parent: 72ff894)
author | Sverre Rabbelier <srabbelier@gmail.com> | |
Wed, 18 Nov 2009 01:42:29 +0000 (02:42 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 18 Nov 2009 05:45:44 +0000 (21:45 -0800) |
Found with:
valgrind --tool=memcheck --leak-check=full --show-reachable=yes
Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
valgrind --tool=memcheck --leak-check=full --show-reachable=yes
Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport-helper.c | patch | blob | history |
diff --git a/transport-helper.c b/transport-helper.c
index da8185a98150fddf692c9ead76097acbe7b9b41c..628a5ca21062ee26ca219f75e13ad7d3c7dcff4d 100644 (file)
--- a/transport-helper.c
+++ b/transport-helper.c
}
free(refspecs);
}
+ strbuf_release(&buf);
return data->helper;
}
}
disconnect_helper(transport);
finish_command(&fastimport);
+ free(fastimport.argv);
+ fastimport.argv = NULL;
for (i = 0; i < nr_heads; i++) {
char *private;
read_ref(private, posn->old_sha1);
free(private);
}
+ strbuf_release(&buf);
return 0;
}