Corrected memory being improperly freed

The memory for sql->bound_values is now freed by mdb_sql_reset, so these values no longer should be freed in dump_results_pp.  Also, this fixes a memory leak that was occurring when results were not being pretty printed.
This commit is contained in:
William Rogers 2015-05-24 17:15:52 -05:00
parent 0123d7e1c2
commit 82e3436494

View File

@ -336,11 +336,6 @@ dump_results_pp(FILE *out, MdbSQL *sql)
if (footers) {
print_rows_retrieved(out, row_count);
}
/* clean up */
for (j=0;j<sql->num_columns;j++) {
g_free(sql->bound_values[j]);
}
}
int