Skip to content

Commit

Permalink
FileSys|Fixed: Minor memory leak attempting to reopen an open file
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jan 8, 2012
1 parent b4550ca commit d761c1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doomsday/engine/portable/src/fs_main.c
Expand Up @@ -1551,6 +1551,7 @@ static DFile* tryOpenFile2(const char* path, const char* mode, size_t baseOffset
if(!allowDuplicate && !F_CheckFileId(Str_Text(foundPath)))
{
fclose(file);
Str_Delete(foundPath);
Str_Free(&searchPath);
return NULL;
}
Expand Down

0 comments on commit d761c1a

Please sign in to comment.