Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-387

Every raised exception leaks

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.1.15
    • Other
    • None

    Description

      PyErr_SetObject() takes its own reference to the value, so the one held by mariadb_throw_exception() and mariadb_exception_connection_gone() in mariadb_exception.c has to be dropped. It never is, so each raised exception is retained for the life of the process, along with its errmsg/msg/sqlstate/errno attributes.

      Any application that hits errors in a loop grows without bound. Both functions also leak ErrorMsg, ErrorNo and SqlState on the return taken when the exception object can't be constructed.

      2.0 already has both fixes.

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.