List:Commits« Previous MessageNext Message »
From:Chad MILLER Date:September 28 2006 1:51pm
Subject:bk commit into 5.0 tree (cmiller:1.2288) BUG#21476
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of cmiller. When cmiller does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2006-09-28 09:51:06-04:00, cmiller@stripped +1 -0
  Additional patch to Bug#21476:  Free newly-allocated memory in mysqltest.

  client/mysqltest.c@stripped, 2006-09-28 09:51:04-04:00, cmiller@stripped +5 -1
    Free the dynstr.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	cmiller
# Host:	zippy.cornsilk.net
# Root:	/home/cmiller/work/mysql/bug21476/my50-bug21476

--- 1.242/client/mysqltest.c	2006-09-28 09:51:10 -04:00
+++ 1.243/client/mysqltest.c	2006-09-28 09:51:10 -04:00
@@ -1608,6 +1608,7 @@ int do_save_master_pos()
 
 int do_let(struct st_query *query)
 {
+  int ret;
   char *p= query->first_argument;
   char *var_name, *var_name_end;
   DYNAMIC_STRING let_rhs_expr;
@@ -1636,8 +1637,11 @@ int do_let(struct st_query *query)
 
   query->last_argument= query->end;
   /* Assign var_val to var_name */
-  return var_set(var_name, var_name_end, let_rhs_expr.str, 
+  ret= var_set(var_name, var_name_end, let_rhs_expr.str, 
                  (let_rhs_expr.str + let_rhs_expr.length));
+  dynstr_free(&let_rhs_expr);
+
+  return(ret);
 }
 
 
Thread
bk commit into 5.0 tree (cmiller:1.2288) BUG#21476Chad MILLER28 Sep