List:Commits« Previous MessageNext Message »
From:jonas Date:April 5 2007 8:05am
Subject:bk commit into 5.1 tree (jonas:1.2521) BUG#27663
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of jonas. When jonas 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, 2007-04-05 10:05:05+02:00, jonas@stripped +1 -0
  ndb - bug#27663 (51-telco)
        fix free/delete problem

  storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp@stripped, 2007-04-05 10:05:03+02:00, jonas@stripped +4 -1
    ndb - bug#27663 (51-telco)
          fix free/delete problem

# 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:	jonas
# Host:	perch.ndb.mysql.com
# Root:	/home/jonas/src/51-telco

--- 1.169/storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp	2007-04-05 10:05:10 +02:00
+++ 1.170/storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp	2007-04-05 10:05:10 +02:00
@@ -4203,7 +4203,10 @@
         el.type = NdbDictionary::Object::TableEvent;
         el.state = NdbDictionary::Object::StateOnline;
         el.store = NdbDictionary::Object::StorePermanent;
-        el.name = strdup(event_name->aRef());
+        Uint32 len = strlen(event_name->aRef());
+        el.name = new char[len+1];
+        memcpy(el.name, event_name->aRef(), len);
+        el.name[len] = 0;
       }
       rows++;
     }
Thread
bk commit into 5.1 tree (jonas:1.2521) BUG#27663jonas5 Apr