mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
vector: free is now dispose
In keeping with the libgit2 pattern, we _dispose_ a structure that is not heap allocated, and _free_ a structure's contents _and the structure itself_.
This commit is contained in:
@@ -67,7 +67,7 @@ int main(int argc, char **argv)
|
||||
fprintf(stderr, "Done %d runs\n", i);
|
||||
|
||||
exit:
|
||||
git_vector_free_deep(&corpus_files);
|
||||
git_vector_dispose_deep(&corpus_files);
|
||||
git_libgit2_shutdown();
|
||||
return error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user