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
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.
trafficserver/plugins/experimental/mysql_remap/mysql_remap.cc
Line 188 in 21f6a70
Regards