Fix mem leak in My_CloseDir() (#25614). r=saari

This commit is contained in:
sdagley%netscape.com 2000-01-31 22:41:05 +00:00
parent 07294f59bb
commit b3c9985980

View File

@ -210,8 +210,15 @@ ErrorExit:
static void My_CloseDir(MyPRDir *mdDir)
{
if (!mdDir)
return; // Not much we can do with a null mdDir
// If we'd allocated an entry name then delete it
if (mdDir->currentEntryName)
PR_DELETE(mdDir->currentEntryName);
// delete the directory info struct as well
PR_DELETE(mdDir);
}
// The R**co FSSpec resolver -