Fix memleak in test/core/mkdir reported by CRTDBG

This commit is contained in:
Jeff Hostetler 2015-04-17 10:30:33 -04:00
parent c332bb70cd
commit e3737a4185

View File

@ -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);
}