Commit e3737a41 by Jeff Hostetler

Fix memleak in test/core/mkdir reported by CRTDBG

parent c332bb70
...@@ -103,7 +103,7 @@ static void cleanup_chmod_root(void *ref) ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment