Skip to content

Commit cce966c

Browse files
committed
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.
1 parent d32a407 commit cce966c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/path.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2045,7 +2045,7 @@ int git_path_validate_system_file_ownership(const char *path)
20452045
git_error_set(GIT_ERROR_INVALID, "programdata configuration file owner is not valid");
20462046
ret = GIT_ERROR;
20472047
}
2048-
free(info);
2048+
git__free(info);
20492049

20502050
cleanup:
20512051
if (descriptor)

0 commit comments

Comments
 (0)