mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 09:36:47 +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));
|
memset(hash, 0, hsize * sizeof(*hash));
|
||||||
|
|
||||||
/* allocate an array to count hash entries */
|
/* 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) {
|
if (!hash_count) {
|
||||||
git__free(index);
|
git__free(index);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user