Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-7666

llog_cat_new_log() should use chunk size when freeing header

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • None
    • 3
    • 9223372036854775807

    Description

      In llog_cat_new_log() we create a spurious memory leak warning when we use OBD_FREE_PTR(loghandle->lgh_hdr) rather than OBD_FREE(..., loghandle->lgh_ctxt->loc_chunk_size).

      From leak_finder.pl:

      *** Free different size (32768 alloced, 8192 freed).
          malloc at llog.c:llog_init_handle:345, free at llog_cat.c:llog_cat_new_log:104
      

      Attachments

        Issue Links

          Activity

            People

              jhammond John Hammond
              jhammond John Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: