mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Fix mem leak in My_CloseDir() (#25614). r=saari
This commit is contained in:
parent
07294f59bb
commit
b3c9985980
@ -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 -
|
||||
|
Loading…
Reference in New Issue
Block a user