MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Bjorn Munch Date:August 27 2009 10:34am
Subject:bzr commit into mysql-5.1-mtr branch (Bjorn.Munch:2820) Bug#46164
View as plain text  
#At file:///home/bm136801/my/warn-51/ based on revid:bjorn.munch@stripped

 2820 Bjorn Munch	2009-08-27 [merge]
      Bug #46164 memory leak in mysqltest after parse error with --debug
      Moved some dynstr_free() further up

    modified:
      client/mysqltest.cc
=== modified file 'client/mysqltest.cc'
--- a/client/mysqltest.cc	2009-08-11 21:41:44 +0000
+++ b/client/mysqltest.cc	2009-08-18 13:26:17 +0000
@@ -7161,6 +7161,10 @@ void run_query(struct st_connection *cn,
     run_query_normal(cn, command, flags, query, query_len,
 		     ds, &ds_warnings);
 
+  dynstr_free(&ds_warnings);
+  if (command->type == Q_EVAL)
+    dynstr_free(&eval_query);
+
   if (display_result_sorted)
   {
     /* Sort the result set and append it to result */
@@ -7191,11 +7195,8 @@ void run_query(struct st_connection *cn,
     check_require(ds, command->require_file);
   }
 
-  dynstr_free(&ds_warnings);
   if (ds == &ds_result)
     dynstr_free(&ds_result);
-  if (command->type == Q_EVAL)
-    dynstr_free(&eval_query);
   DBUG_VOID_RETURN;
 }
 


Attachment: [text/bzr-bundle] bzr/bjorn.munch@sun.com-20090827103407-sysykzdi27w4hfhu.bundle
Thread
bzr commit into mysql-5.1-mtr branch (Bjorn.Munch:2820) Bug#46164Bjorn Munch27 Aug