Fix memleak in test/core/mkdir reported by CRTDBG
diff --git a/tests/core/mkdir.c b/tests/core/mkdir.c
index a0e8491..f76fe1d 100644
--- a/tests/core/mkdir.c
+++ b/tests/core/mkdir.c
@@ -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);
}