RFR: 8347758: modules.cpp leaks string returned from get_numbered_propert_as_sorted_string()

Zhengyu Gu zgu at openjdk.org
Wed Jan 15 03:17:13 UTC 2025


Modules::get_numbered_property_as_sorted_string() returns strings created from os::strdup(), callers should free them after uses.

-------------

Commit messages:
 - 8347758: modules.cpp leaks string returned from get_numbered_property_as_sorted_string()

Changes: https://git.openjdk.org/jdk/pull/23121/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23121&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8347758
  Stats: 9 lines in 1 file changed: 6 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/23121.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23121/head:pull/23121

PR: https://git.openjdk.org/jdk/pull/23121


More information about the hotspot-runtime-dev mailing list