mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-06 07:43:35 +00:00
Ensure git_index_entry is not NULL before trying to free it
This commit is contained in:
parent
73c5db7663
commit
b63b3b0e4d
@ -292,6 +292,9 @@ static void index_entry_reuc_free(git_index_reuc_entry *reuc)
|
||||
|
||||
static void index_entry_free(git_index_entry *entry)
|
||||
{
|
||||
if (!entry)
|
||||
return;
|
||||
|
||||
memset(&entry->id, 0, sizeof(entry->id));
|
||||
git__free(entry);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user