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.
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.
- duplicates
-
JDK-8133830 [solaris] Potential memory leak in TimeZone_md.c, function findJavaTZ_md()
-
- Closed
-