JDK-8032653 : Possible double free() calls in Java_sun_management_DiagnosticCommandImpl_getDiagnosticCommandInfo
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: 8,9
  • Priority: P2
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2014-01-24
  • Updated: 2014-02-21
  • Resolved: 2014-01-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Resolved
Related Reports
Relates :  
Description
The code does:

  if (result == NULL) {
      free(dcmd_info_array);
      JNU_ThrowOutOfMemoryError(env, 0);
  }
  ...
  free(dcmd_info_array);

JNU_ThrowOutOfMemoryError() does not cause the current function to return (it is not a macro), so free(dcmd_info_array) can be called twice.