~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/query.cc

  • Committer: Brian Aker
  • Date: 2011-12-16 06:32:39 UTC
  • mto: (2478.1.1 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2474.
  • Revision ID: brian@tangent.org-20111216063239-hgrxmt1ginuvxpqv
Formatting, and valgrind cleanups (just mismatch of free/delete).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
 
1
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
2
 *
2
3
 * Drizzle Client & Protocol Library
3
4
 *
4
5
 * Copyright (C) 2008 Eric Day (eday@oddments.org)
136
137
  query->drizzle->query_count--;
137
138
 
138
139
  if (query->options & DRIZZLE_QUERY_ALLOCATED)
139
 
    free(query);
 
140
  {
 
141
    delete query;
 
142
  }
140
143
}
141
144
 
142
145
void drizzle_query_free_all(drizzle_st *drizzle)
143
146
{
144
147
  while (drizzle->query_list != NULL)
 
148
  {
145
149
    drizzle_query_free(drizzle->query_list);
 
150
  }
146
151
}
147
152
 
148
153
drizzle_con_st *drizzle_query_con(drizzle_query_st *query)