mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-20 22:05:37 +00:00
Fix memleak in test/core/mkdir reported by CRTDBG
This commit is contained in:
parent
c332bb70cd
commit
e3737a4185
@ -103,7 +103,7 @@ static void cleanup_chmod_root(void *ref)
|
||||
{
|
||||
mode_t *mode = ref;
|
||||
|
||||
if (*mode != 0) {
|
||||
if (mode != NULL) {
|
||||
(void)p_umask(*mode);
|
||||
git__free(mode);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user