Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-118

Options get lost and Memory-leak when reconnecting

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.1
    • None
    • None
    • Linux 32/64 bit

    Description

      Hi Georg,

      thanks for fixing the bug CONC-117. But there are still a few bugs which need to be fixed in function "mysql_reconnect" from file "libmariadb.c" :

      1. Original options from client would get lost if reconnecting fails, because of the bzero() before function "mysql_real_connect()"

      2. The free_me flag in original mysql object is set to 0, which would lead to memory leak. You should store the old value and set it back after cloning from tmp_mysql object.

      I wrote the patch with some comment. More details and descriptions can be found in uploaded file.

      Attachments

        Activity

          People

            georg Georg Richter
            tianhongxu Tianhong
            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.