Skip to content

Commit

Permalink
CID 743867: Memleak in DiskUsage
Browse files Browse the repository at this point in the history
  • Loading branch information
stpere committed Jul 2, 2015
1 parent 494fe5a commit 8d44966
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/apps/diskusage/Scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,10 @@ Scanner::_GetFileInfo(BDirectory* dir, FileInfo* parent)
thisDir->count = 0;

while (true) {
if (fQuitRequested)
if (fQuitRequested) {
delete thisDir;
return NULL;
}

if (dir->GetNextEntry(&entry) == B_ENTRY_NOT_FOUND)
break;
Expand Down

0 comments on commit 8d44966

Please sign in to comment.