From: Date: April 5 2007 9:57am Subject: bk commit into 5.1 tree (jonas:1.2483) BUG#27663 List-Archive: http://lists.mysql.com/commits/23874 X-Bug: 27663 Message-Id: <20070405075706.B41ED58F76@perch.ndb.mysql.com> 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 09:57:01+02:00, jonas@stripped +1 -0 ndb - bug#27663 (telco-6.1) fix free/delete problem storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp@stripped, 2007-04-05 09:56:58+02:00, jonas@stripped +4 -1 ndb - bug#27663 (telco-6.1) 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/telco-6.1 --- 1.159/storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp 2007-04-05 09:57:06 +02:00 +++ 1.160/storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp 2007-04-05 09:57:06 +02:00 @@ -4167,7 +4167,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++; }