Commit c694f9fa by Edward Thomson

Merge pull request #3052 from jeffhostetler/jeffhostetler/memleak_test_core_mkdir

Fix memleak in test/core/mkdir reported by CRTDBG
parents c332bb70 e3737a41
...@@ -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