Memory leaks in java.net.NetworkInterface on Windows XP

XMLWordPrintable

    • 6
    • b22
    • generic
    • windows_xp
    • Not verified

      Examination of the source code shows that there are potential memory leaks in windows XP specific code when handling NetworkInterfaces.
      e.g.:
      ptr = getAdapter(env, index);
      if (ptr != NULL && (ptr->Flags & IP_ADAPTER_NO_MULTICAST)) {
        val = JNI_FALSE;
        free(ptr);
      }

      Obviously that pointer should be freed no matter the value of ptr->Flags

            Assignee:
            Jean-Christophe Collet (Inactive)
            Reporter:
            Jean-Christophe Collet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: