[solaris] Memory Leak in native part of java.util.TimeZone

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • None
    • Affects Version/s: 9
    • Component/s: core-libs
    • None

      Code review at SAP revealed a small memory leak in TimeZone_md.c:

       685 #ifdef __solaris__
       686 if (tz != NULL && strcmp(tz, "localtime") == 0) {
       687 tz = getSolarisDefaultZoneID();
       >> here we leak freetz on solaris <<
       688 freetz = tz;
       689 }
       690 #endif

      See http://mail.openjdk.java.net/pipermail/jdk9-dev/2015-August/002554.html

      Thanks to Christoph Langer for finding this.

            Assignee:
            Unassigned
            Reporter:
            Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: