Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4983832

Memory leak on Windows when zip errors occur in zip_util.c:readLOC()

XMLWordPrintable

    • b38
    • generic
    • windows_2000

      By inspection,

      FREE_AND_RETURN_NULL:
      #ifndef USE_MMAP
          if (ze != NULL) {
      if (ze->extra != NULL)
      free(ze->extra);
      if (ze->name != NULL)
      free(ze->name);
              free(ze);
          }
          if (locbuf != NULL)
              free(locbuf);
      #endif

      should be

       FREE_AND_RETURN_NULL:
          if (ze != NULL) {
      if (ze->extra != NULL)
      free(ze->extra);
      if (ze->name != NULL)
      free(ze->name);
              free(ze);
          }
      #ifndef USE_MMAP
          if (locbuf != NULL)
              free(locbuf);
      #endif

      ###@###.### 2004-01-26

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: