~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/query.cc

  • Committer: Mark Atwood
  • Date: 2011-12-16 15:35:52 UTC
  • mfrom: (2472.1.1 drizzle-build)
  • Revision ID: me@mark.atwood.name-20111216153552-0zk0mmf1tt22p92n
mergeĀ lp:~brianaker/drizzle/libdrizzle-valgrind-test-warnings

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)