Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak with ICU 72.1.0.2 (Windows 11 24H2) #152

Open
mterrisse opened this issue Dec 16, 2024 · 1 comment
Open

Memory leak with ICU 72.1.0.2 (Windows 11 24H2) #152

mterrisse opened this issue Dec 16, 2024 · 1 comment

Comments

@mterrisse
Copy link

Hello,

We have a memory leak with ICU 72.1.0.2 on Windows 11 24H2. This doesn't happen with ICU 68.2.0.10 on Windows 11 23H2.

Here are the steps in a gui program with a File / Save As command:

  • LoadLibrary('icuuc.dll')
  • Get the addresses of u_init, u_cleanup, and u_setMemoryFunctions
  • LoadLibrary ('icuin.dll'). This loads icu.dll too.
  • Get the addresses of ucol_open, ucol_close, ucol_strcoll, and ucol_setAttribute
  • Call u_setMemoryFunctions to set memory allocation functions
  • Call u_init. The memory allocation functions are called
  • Open a Save As dialog (GetSaveFileName, comdlg32.dll) and cancel
  • Call u_cleanup (). This doesn't release memory allocated by u_init
  • Call FreeLibray for icuin.dll. icu.dll is not unloaded and memory is not released
  • Note that at this step if you haven't called GetSaveFileName, icu.dll is unloaded and the memory is released
  • Call FreeLibrary for icuuc.dll. No change.

Regards,

Michel Terrisse

@mterrisse
Copy link
Author

Hello,

The bug is still present after Windows 11 2025-01 cumulative update.
Do you need more information to reproduce the problem?

Regards,

Michel Terrisse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant