NTFS: Fix potential memory leak.

This commit is contained in:
Augustin Cavalier
2023-07-31 17:38:47 -04:00
parent 3961af9fe9
commit 13b7ddec87
@@ -204,6 +204,9 @@ fs_mount(fs_volume* _volume, const char* device, uint32 flags,
char* reallocated = (char*)realloc(mountpoint, strlen(mountpoint) + 1);
if (reallocated != NULL)
mountpoint = reallocated;
} else {
free(mountpoint);
mountpoint = NULL;
}
}
if (status != B_OK)