Fix behavior of dmalloc, dcalloc, drealloc used in testing to match malloc, etc.

XMLWordPrintableJSON

    • Storage Engines, Storage Engines - Foundations
    • SE Foundations - 2025-09-12
    • 1

      In the (alleged) fix to WT-15173, an error was introduced.  When reallocing zero elements, realloc returns NULL, and it is not an error.  Dying at that point is not the right thing to do.

      A clean and general fix is to modify drealloc to allow a NULL return (without error) if zero elements is allocated.  Same with dmalloc, dcalloc.

            Assignee:
            Donald Anderson
            Reporter:
            Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: