Skip to content

Memory leak in AddFiltersToDialog on Windows (nfd_win.cpp) #97

@kcloudy0717

Description

@kcloudy0717

Compilation Environment

  • OS: Windows
  • Compiler: MSVC
  • Compiler Version: MSVC 1928
  • Build directory used: vs2010
  • Have I attempted to reproduce the problem on the devel branch? Yes

Memory leak in AddFiltersToDialog when deallocating COMDLG_FILTERSPEC

Before the function returns in AddFiltersToDialog, the code frees the allocated memory for specList and its members, but it only does it for the pszSpec but not the pszName. In the for loop there should also be a line for NFDi_Free( (void*)specList[i].pszName );.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions