MariaDB-server/include
Monty f33367f2ab Fixed a LOT of memory leaks in mariabackup
This was generally good to get done but also needed to be able to run
mariabackup test under asan.

Things freed:
- Allocated variables (mysql_tmpdir_list, opt_passwd etc)
- InnoDB variables
- Results from SQL queries (A lot of sql queries did not free their result)
- Allocated sys_vars
- Server variables (mysql_server_end())
- Memory allocated by plugins (encryption)
- Free variables allocated by my_default. (Old code had a bug that caused
  these to not be freed)

Other things:
- Moved freeing of mysql_tmpdir_list to main, as the old code did not
  free the last mysqltmp_dir allocation.  Now we also initialize the
  variable only once.
- Fixed a serious, potentially 'crashing at end' bug where we called
  free_defaults() with wrong pointers.
- Fixed a bug related to update_malloc_size() where we did not take
  into account the it was not changed.
- Fixed a bug in Sys_var_charptr_base where we did not allocate
  default values. This could lead to trying to free not allocated values
  in xtrabackup.
- Added sf_have_memory_leak() to be able to easily check if there was
  a memory leak when using safemalloc()
- sf_report_leaked_memory() now returns 1 if a memory leak was found.
2025-09-04 18:08:39 +03:00
..
atomic
mysql Merge 10.6 into 10.11 2025-08-22 06:47:54 +03:00
providers
aligned.h
aria_backup.h
assume_aligned.h
big_endian.h
byte_order_generic_x86_64.h typo fixed. HAVE_mi_uint8korr 2023-11-02 19:42:39 +11:00
byte_order_generic_x86.h
byte_order_generic.h
CMakeLists.txt MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
decimal.h
dur_prop.h
errmsg.h
ft_global.h
handler_ername.h MDEV-24035 Failing assertion: UT_LIST_GET_LEN(lock.trx_locks) == 0 causing disruption and replication failure 2024-12-12 18:02:00 +02:00
handler_state.h
hash.h Merge 10.6 into 10.11 2024-11-29 13:43:17 +02:00
heap.h MDEV-35469 Heap tables are calling mallocs to often 2025-01-05 16:40:11 +02:00
ilist.h Merge 10.6 into 10.8 2023-02-10 13:43:53 +02:00
json_lib.h json: escaping/unescaping errors should be handled. 2025-04-19 08:55:05 +10:00
keycache.h
lf.h
little_endian.h
m_ctype.h Merge branch '10.6' into 10.11 2023-12-18 11:19:04 +01:00
m_string.h MDEV-36542 Remove UNINIT_VAR(x)=x under UBSAN 2025-07-29 13:15:02 +10:00
ma_dyncol.h
maria.h
mariadb_capi_rename.h more C API methods in the service_sql 2025-01-28 19:31:29 +01:00
my_alarm.h
my_alloc.h Merge branch '10.6' into 10.11 2023-12-18 11:19:04 +01:00
my_alloca.h Merge branch '10.4' into 10.5 2023-04-24 12:43:47 +02:00
my_atomic_wrapper.h Merge 10.5 into 10.6 2023-02-10 13:03:01 +02:00
my_atomic.h
my_attribute.h Get debug version to compile with gcc 7.5.0 2025-06-02 14:02:53 +03:00
my_base.h MDEV-36504 Memory leak after CREATE TABLE..SELECT 2025-04-17 12:04:09 +05:30
my_bit.h MDEV-34392 Inplace algorithm violates the foreign key constraint 2024-10-01 09:41:56 +05:30
my_bitmap.h Merge 10.6 into 10.11 2024-03-28 09:16:57 +02:00
my_byteorder.h
my_check_opt.h
my_cmp.h MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
my_compare.h Merge branch '10.4' into 10.5 2023-11-08 12:59:00 +01:00
my_compiler.h MDEV-29152: Assertion failed ... upon TO_CHAR with wrong argument 2023-07-12 12:05:59 +03:00
my_counter.h Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
my_cpu.h Fix building with Clang and GCC on RISC-V 2025-03-21 18:28:36 +01:00
my_crypt.h
my_dbug.h MDEV-36542: remove _lint macro which is unused 2025-07-29 13:15:02 +10:00
my_decimal_limits.h
my_default.h
my_dir.h
my_getopt.h
my_global.h MDEV-36542: remove _lint macro which is unused 2025-07-29 13:15:02 +10:00
my_handler_errors.h MDEV-24035 Failing assertion: UT_LIST_GET_LEN(lock.trx_locks) == 0 causing disruption and replication failure 2024-12-12 18:02:00 +02:00
my_libwrap.h
my_list.h
my_md5.h
my_minidump.h
my_net.h
my_nosys.h
my_pthread.h MDEV-34388 default stack size under MSAN needs increasing 2025-05-28 16:30:56 +10:00
my_rdtsc.h MDEV-34815 SIGILL error when executing mariadbd compiled for RISC-V with Clang 2024-12-05 02:36:25 +11:00
my_rnd.h
my_service_manager.h MDEV-37232 - fix embedded build on Windows 2025-07-17 20:14:38 +02:00
my_stack_alloc.h MDEV-36412 Concerns compilation issue on community edition for x86_64 with X32 ABI 2025-04-19 11:03:43 +03:00
my_stacktrace.h
my_sys.h Fixed a LOT of memory leaks in mariabackup 2025-09-04 18:08:39 +03:00
my_time.h MDEV-36882: Inconsistent DBUG_ASSERT trips GCC -Og 2025-05-27 08:05:19 +03:00
my_tree.h
my_uctype.h
my_user.h
my_valgrind.h MDEV-37019 MSAN_STAT_WORKAROUND macro remove 2025-06-18 16:46:21 +10:00
my_virtual_mem.h MDEV-36780: InnoDB buffer pool reserves all assigned memory 2025-05-13 12:27:42 +03:00
my_xml.h
myisam.h MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
myisamchk.h Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
myisammrg.h MDEV-31083 ASAN use-after-poison in myrg_attach_children 2023-05-23 09:16:36 +03:00
myisampack.h
mysql_com_server.h
mysql_com.h Merge from 10.4 to 10.5 2024-04-15 17:46:49 +02:00
mysql_embed.h
mysql_time.h
mysql_version.h.in
mysql.h Merge branch '10.6' into 10.11 2023-12-18 11:19:04 +01:00
mysqld_default_groups.h
mysys_err.h
no_valgrind_without_big.inc MDEV-31893 Valgrind reports issues in main.join_cache_notasan 2023-08-10 20:57:42 +02:00
pack.h
password.h
pfs_file_provider.h
pfs_idle_provider.h
pfs_memory_provider.h
pfs_metadata_provider.h
pfs_socket_provider.h
pfs_stage_provider.h
pfs_statement_provider.h
pfs_table_provider.h
pfs_thread_provider.h
pfs_transaction_provider.h
probes_mysql_nodtrace.h.in
probes_mysql.d.base
probes_mysql.h
queues.h MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
rijndael.h
scope.h MDEV-22441 SCOPE_VALUE macro for temporary values 2025-01-14 18:56:13 +03:00
service_versions.h Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
source_revision.h.in
span.h Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
sql_common.h Merge branch '10.5' into 10.6 2023-12-17 11:20:43 +01:00
ssl_compat.h MDEV-35581 On servers linked against WolfSSL SSL_Cipher and SSL_cipher_list are always the same 2025-07-17 09:18:17 +02:00
sslopt-case.h
sslopt-longopts.h MDEV-28908 Confusing documentation and help output for --ssl-verify-server-cert 2025-03-31 17:57:40 +02:00
sslopt-vars.h
t_ctype.h
thr_alarm.h
thr_lock.h
thr_timer.h
typelib.h
violite.h MDEV-33582 Add more warnings to be able to better diagnose network issues 2024-03-05 20:19:49 +02:00
waiting_threads.h
welcome_copyright_notice.h
wqueue.h
wsrep.h