Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-331

The "data" pointed to by a DCB is freed indirectly, hard to verify

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 2.1.0
    • Core
    • None
    • All

    Description

      A DCB includes a pointer to "data". The DCB does not know what this data is, because it is dependent on how the DCB is being used. It may be the same "data" as is also pointed to by a session object.

      The lack of knowledge currently means that the DCB does not handle freeing of the data, because it does not know what is involved. The logic of ensuring that it is freed is tortuous and indirect, and very difficult to validate.

      It might be preferable to include in the DCB alongside the pointer to "data" a function pointer to the function that can free the data. The function might simply be the standard free function, but using a function pointer guarantees that the mechanism remains flexible.

      Attachments

        Activity

          People

            markus makela markus makela
            martin brampton martin brampton (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.