List:Commits« Previous MessageNext Message »
From:Konstantin Osipov Date:September 12 2008 8:18pm
Subject:bzr push into mysql-6.0-runtime branch (konstantin:2712 to 2713)
View as plain text  
 2713 Konstantin Osipov	2008-09-12
      Fix memory leaks in mysql_client_test.
modified:
  tests/mysql_client_test.c

 2712 Konstantin Osipov	2008-09-12
      Update .bzrignore with new linked files.
modified:
  .bzrignore

=== modified file 'tests/mysql_client_test.c'
--- a/tests/mysql_client_test.c	2008-09-04 18:30:34 +0000
+++ b/tests/mysql_client_test.c	2008-09-12 17:54:55 +0000
@@ -1920,6 +1920,8 @@ static void test_wl4435()
       mct_log("mysql_stmt_next_result(): %d; field_count: %d\n",
               (int) rc, (int) mysql->field_count);
 
+      free(rs_bind);
+      mysql_free_result(rs);
       if (rc > 0)
       {
         printf("Error: %s (errno: %d)\n",
@@ -1937,7 +1939,6 @@ static void test_wl4435()
       }
     }
 
-    free(rs_bind);
   }
 
   mysql_stmt_close(stmt);
@@ -18366,6 +18367,7 @@ static void test_bug36004()
 
   query_int_variable(mysql, "@@warning_count", &warning_count);
   DIE_UNLESS(warning_count == 0);
+  mysql_stmt_close(stmt);
 
   DBUG_VOID_RETURN;
 }

Thread
bzr push into mysql-6.0-runtime branch (konstantin:2712 to 2713) Konstantin Osipov12 Sep