Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-11957

Memory leak in mysql command line client

    XMLWordPrintable

Details

    Description

      mysql command client (and maybe other client utilities) leak:

      in main() (line 1148) stack memory for MYSQL mysql is initialized via mysql_init(&mysql).
      In case no connection was established stack memory will be initialized again in function sql_real_connect.

      Even if no connection was established, there might be several memory allocations, e.g. for options/options->extensions which will be initialized again without being freed before.

      How to repeat:
      valgrind -v --leak-check-yes ./mysql -uroot -e"SELECT 1;"

      Attachments

        Activity

          People

            serg Sergei Golubchik
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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