~drizzle-trunk/libdrizzle/jenkins-Libdrizzle-78

« back to all changes in this revision

Viewing changes to libdrizzle/statement.cc

  • Committer: Andrew Hutchings
  • Date: 2012-12-28 10:37:41 UTC
  • mto: This revision was merged to the branch mainline in revision 65.
  • Revision ID: andrew@linuxjedi.co.uk-20121228103741-1s93bt6go6wd6m7a
Fix valgrind errors and leaks

Show diffs side-by-side

added added

removed removed

Lines of Context:
567
567
 
568
568
  free(stmt->null_bitmap);
569
569
  free(stmt->query_params);
570
 
  free(stmt->result_params);
 
570
  if (stmt->result_params)
 
571
  {
 
572
    free(stmt->result_params->data);
 
573
    free(stmt->result_params);
 
574
  }
571
575
  if (stmt->execute_result)
572
576
  {
573
577
    drizzle_result_free(stmt->execute_result);