Skip to content

Mutual exclusion problem in mysql_remap plugin #6631

Description

@klebertarcisio

Hi Peeps,

Look this previous discussion in: #6627

I am commenting about the malloc of line 188. Is there a need to call the free function?
The do_mysql_remap function already has a local query variable.
What would be the best solution? Delete the my_data struct? How would it be replaced?
The iniparser_freedict method frees several resources. Would it be interesting to release the data as well?
Sorry for the amount of questions. I'm trying to understand the big picture.

my_data *data = static_cast<my_data *>(malloc(1 * sizeof(my_data)));

Regards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions