mirror of
https://github.com/MariaDB/server.git
synced 2026-05-08 08:04:29 +02:00
Remove compiler warnings
Add missing DBUG_RETURN Fixed stack overflow in NdbBlob (found by ndb_gis.test) Fixed access to freed memory in ndb_cluster_real_free_share() mysys/mf_keycache.c: Add missing DBUG_RETURN sql/ha_ndbcluster.cc: Move free_root to after share handling, as otherwise we will free things needed by free_table_share() sql/item_func.cc: Add missing DBUG_RETURN sql/item_strfunc.cc: Add missing DBUG_RETURN sql/sp_head.cc: Add missing DBUG_RETURN sql/sql_base.cc: Add missing DBUG_RETURN storage/csv/ha_tina.cc: Add missing DBUG_RETURN storage/myisam/mi_key.c: Add missing DBUG_RETURN storage/myisam/mi_keycache.c: Add missing DBUG_RETURN storage/ndb/include/kernel/signaldata/ArbitSignalData.hpp: Remove compiler warning storage/ndb/include/kernel/signaldata/DictTabInfo.hpp: Remove compiler warning storage/ndb/include/transporter/TransporterDefinitions.hpp: Remove compiler warning storage/ndb/include/util/SimpleProperties.hpp: Remove compiler warning storage/ndb/include/util/SocketServer.hpp: Remove compiler warning storage/ndb/src/ndbapi/ClusterMgr.hpp: Remove compiler warning storage/ndb/src/ndbapi/NdbBlob.cpp: Fix stack overflow storage/ndb/src/ndbapi/NdbEventOperationImpl.hpp: Remove compiler warning storage/ndb/src/ndbapi/NdbScanOperation.cpp: Remove compiler warning
This commit is contained in:
parent
59eaf292de
commit
8ac1d55286
18 changed files with 32 additions and 16 deletions
|
|
@ -7060,7 +7060,6 @@ void ndbcluster_real_free_share(NDB_SHARE **share)
|
|||
hash_delete(&ndbcluster_open_tables, (byte*) *share);
|
||||
thr_lock_delete(&(*share)->lock);
|
||||
pthread_mutex_destroy(&(*share)->mutex);
|
||||
free_root(&(*share)->mem_root, MYF(0));
|
||||
|
||||
#ifdef HAVE_NDB_BINLOG
|
||||
if ((*share)->table)
|
||||
|
|
@ -7081,6 +7080,7 @@ void ndbcluster_real_free_share(NDB_SHARE **share)
|
|||
#endif
|
||||
}
|
||||
#endif
|
||||
free_root(&(*share)->mem_root, MYF(0));
|
||||
my_free((gptr) *share, MYF(0));
|
||||
*share= 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue