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:
Edward Thomson 2015-04-17 10:53:46 -05:00
commit c694f9fae8

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