summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Tull <dtull@adobe.com>2020-10-06 17:51:14 -0500
committerDan Tull <dtull@adobe.com>2020-10-06 17:51:14 -0500
commitcce966c3d8ee9a6175fc21f8ecc580fd6d19ee6e (patch)
tree8b188d92b8aff181cb1f14a2278c6b7c8f71da5f
parentd32a4072371d6143b8a8baf1a8eb2652ca8e2ce3 (diff)
downloadlibgit2-cce966c3d8ee9a6175fc21f8ecc580fd6d19ee6e.tar.gz
Change bare free to allocator free.
The info pointer was allocated with git__malloc, so needs to be free'd with git__free. This bug can lurk pretty easily since if there's no custom allocator this is fine.
-rw-r--r--src/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c
index 0d0b40f9c..f271c532c 100644
--- a/src/path.c
+++ b/src/path.c
@@ -2045,7 +2045,7 @@ int git_path_validate_system_file_ownership(const char *path)
git_error_set(GIT_ERROR_INVALID, "programdata configuration file owner is not valid");
ret = GIT_ERROR;
}
- free(info);
+ git__free(info);
cleanup:
if (descriptor)