summaryrefslogtreecommitdiff
path: root/src/transports
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-12-12 12:11:38 -0800
committerRussell Belfer <rb@github.com>2013-12-12 12:11:38 -0800
commit9cfce2735d77f4d8b6005e62349dd97c0c6de5ab (patch)
treeb538c09a7d7d6285f218a052019332ac02bb314c /src/transports
parent11bd7a034ba9046a7ba601c446e937377d507065 (diff)
downloadlibgit2-9cfce2735d77f4d8b6005e62349dd97c0c6de5ab.tar.gz
Cleanups, renames, and leak fixes
This renames git_vector_free_all to the better git_vector_free_deep and also contains a couple of memory leak fixes based on valgrind checks. The fixes are specifically: failure to free global dir path variables when not compiled with threading on and failure to free filters from the filter registry that had not be initialized fully.
Diffstat (limited to 'src/transports')
-rw-r--r--src/transports/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transports/http.c b/src/transports/http.c
index 0e1bbf60d..c6aaeb9cf 100644
--- a/src/transports/http.c
+++ b/src/transports/http.c
@@ -404,7 +404,7 @@ static void clear_parser_state(http_subtransport *t)
git__free(t->location);
t->location = NULL;
- git_vector_free_all(&t->www_authenticate);
+ git_vector_free_deep(&t->www_authenticate);
}
static int write_chunk(gitno_socket *socket, const char *buffer, size_t len)