Opened 10 years ago

Last modified 10 years ago

#8259 new Bugs

ICU is used but not cleaned up, leaking memory.

Reported by: 166291@… Owned by: Artyom Beilis
Milestone: To Be Determined Component: locale
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

So ICU is used in Boost.Locale, but not cleaned up, which leaks memory.

I've attached a patch that fixes this, but has some setbacks:

  • It's not thread safe (that I know of).
  • ICU may be used in other Boost libraries (like Regex) and it will break their data.
  • ICU may be used in user applications and it will break their data.

A solution would be to make an interface for the application users to use that cleans up ICU specifically, but that'd break encapsulation would it not?

Attachments (1)

boost-03-icu_cleanup.patch (659 bytes ) - added by 166291@… 10 years ago.

Download all attachments as: .zip

Change History (2)

by 166291@…, 10 years ago

Attachment: boost-03-icu_cleanup.patch added

comment:1 by 166291@…, 10 years ago

This has been discussed on mailing lists as a non-issue.

Note: See TracTickets for help on using tickets.