mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-29 05:19:57 +00:00
Merge pull request #3052 from jeffhostetler/jeffhostetler/memleak_test_core_mkdir
Fix memleak in test/core/mkdir reported by CRTDBG
This commit is contained in:
commit
c694f9fae8
@ -103,7 +103,7 @@ static void cleanup_chmod_root(void *ref)
|
|||||||
{
|
{
|
||||||
mode_t *mode = ref;
|
mode_t *mode = ref;
|
||||||
|
|
||||||
if (*mode != 0) {
|
if (mode != NULL) {
|
||||||
(void)p_umask(*mode);
|
(void)p_umask(*mode);
|
||||||
git__free(mode);
|
git__free(mode);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user