~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_plugin.cc

  • Committer: Monty Taylor
  • Date: 2008-10-06 01:30:47 UTC
  • Revision ID: monty@inaugust.com-20081006013047-6m2ejc0c4peye2k9
Removed my_free(). It turns out that it had been def'd to ignore the flags passed to it in the second arg anyway. Gotta love that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
303
303
{
304
304
  if (p->handle)
305
305
    dlclose(p->handle);
306
 
  my_free(p->dl.str, MYF(MY_ALLOW_ZERO_PTR));
 
306
  free(p->dl.str);
307
307
}
308
308
 
309
309
 
724
724
 
725
725
  pi= plugin_ref_to_int(plugin);
726
726
 
727
 
  my_free((uchar*) plugin, MYF(MY_WME));
 
727
  free((uchar*) plugin);
728
728
 
729
729
  if (lex)
730
730
  {
1576
1576
  if (var->flags & PLUGIN_VAR_MEMALLOC)
1577
1577
  {
1578
1578
    *(char **)tgt= my_strdup(*(char **) save, MYF(0));
1579
 
    my_free(old, MYF(0));
 
1579
    free(old);
1580
1580
  }
1581
1581
}
1582
1582
 
1949
1949
        flags & PLUGIN_VAR_THDLOCAL && flags & PLUGIN_VAR_MEMALLOC)
1950
1950
    {
1951
1951
      char **ptr= (char**) pivar->real_value_ptr(thd, OPT_SESSION);
1952
 
      my_free(*ptr, MYF(MY_WME | MY_FAE | MY_ALLOW_ZERO_PTR));
 
1952
      free(*ptr);
1953
1953
      *ptr= NULL;
1954
1954
    }
1955
1955
  }
1957
1957
 
1958
1958
  assert(vars->table_plugin == NULL);
1959
1959
 
1960
 
  my_free(vars->dynamic_variables_ptr, MYF(MY_ALLOW_ZERO_PTR));
 
1960
  free(vars->dynamic_variables_ptr);
1961
1961
  vars->dynamic_variables_ptr= NULL;
1962
1962
  vars->dynamic_variables_size= 0;
1963
1963
  vars->dynamic_variables_version= 0;
2008
2008
    {
2009
2009
      /* Free the string from global_system_variables. */
2010
2010
      char **valptr= (char**) piv->real_value_ptr(NULL, OPT_GLOBAL);
2011
 
      my_free(*valptr, MYF(MY_WME | MY_FAE | MY_ALLOW_ZERO_PTR));
 
2011
      free(*valptr);
2012
2012
      *valptr= NULL;
2013
2013
    }
2014
2014
  }