Commit d285de73f9a09bc841b329267d1f61b9c03a7b68

Edward Thomson 2018-07-20T21:52:24

push tests: deeply free the specs Don't just free the spec vector, also free the specs themselves.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/online/push.c b/tests/online/push.c
index 257da27..592372b 100644
--- a/tests/online/push.c
+++ b/tests/online/push.c
@@ -397,7 +397,7 @@ void test_online_push__initialize(void)
 	}
 
 	git_remote_disconnect(_remote);
-	git_vector_free(&delete_specs);
+	git_vector_free_deep(&delete_specs);
 
 	/* Now that we've deleted everything, fetch from the remote */
 	memcpy(&fetch_opts.callbacks, &_record_cbs, sizeof(git_remote_callbacks));