refactor: use libgit free() functions instead of calloc()

This commit is contained in:
Aleksey Kulikov 2021-08-05 20:07:00 +03:00
parent 4f851bc2e5
commit 2477b4efd8
14 changed files with 30 additions and 21 deletions

View file

@ -284,3 +284,6 @@ void deleteMultivar(
calloc.free(name);
calloc.free(regexpC);
}
/// Free the configuration and its associated memory and files.
void free(Pointer<git_config> cfg) => libgit2.git_config_free(cfg);