Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-07-02 18:55:16 +0300
committerCarlos Martín Nieto <cmn@dwim.me>2015-07-02 18:55:16 +0300
commitf034c8518ea955308e1bf31cf57e030fce3b0276 (patch)
tree6c9a56e9b011fbe960e774d83e106fb782767d21 /tests
parenteb94199fe46f01ebefeaf71cd408a1bd9f1e64fc (diff)
parent79306d8d59b3a7abeac379005f41fa9c63cca50b (diff)
Merge pull request #3287 from ethomson/filter_test_cleanup
filter::stream: free the filter sanely
Diffstat (limited to 'tests')
-rw-r--r--tests/filter/stream.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/filter/stream.c b/tests/filter/stream.c
index 603f19494..6bf540ce7 100644
--- a/tests/filter/stream.c
+++ b/tests/filter/stream.c
@@ -25,6 +25,7 @@ void test_filter_stream__cleanup(void)
g_repo = NULL;
git_filter_unregister("compress");
+ git__free(compress_filter);
}
#define CHUNKSIZE 10240
@@ -123,11 +124,6 @@ static int compress_filter_stream_init(
return 0;
}
-static void compress_filter_free(git_filter *f)
-{
- git__free(f);
-}
-
git_filter *create_compress_filter(void)
{
git_filter *filter = git__calloc(1, sizeof(git_filter));
@@ -136,7 +132,6 @@ git_filter *create_compress_filter(void)
filter->version = GIT_FILTER_VERSION;
filter->attributes = "+compress";
filter->stream = compress_filter_stream_init;
- filter->shutdown = compress_filter_free;
return filter;
}