mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 04:29:42 +00:00
Fixing unwrapped calloc
This commit is contained in:
parent
8baca134cc
commit
9007c53fae
@ -168,7 +168,7 @@ git_delta_create_index(const void *buf, unsigned long bufsize)
|
||||
memset(hash, 0, hsize * sizeof(*hash));
|
||||
|
||||
/* allocate an array to count hash entries */
|
||||
hash_count = calloc(hsize, sizeof(*hash_count));
|
||||
hash_count = git__calloc(hsize, sizeof(*hash_count));
|
||||
if (!hash_count) {
|
||||
git__free(index);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user