==18851== 66,431 (850 direct, 65,581 indirect) bytes in 10 blocks are definitely lost in loss record 5 of 7
==18851==    at 0x4022765: malloc (vg_replace_malloc.c:149)
==18851==    by 0x831A874: my_malloc (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x8219CFF: Unique::get(st_table*) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x824B166: QUICK_INDEX_MERGE_SELECT::read_keys_and_merge() (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x825B5AD: find_all_keys(st_sort_param*, SQL_SELECT*, unsigned char**, st_io_cache*, st_io_cache*, st_io_cache*) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x825D7A8: filesort(THD*, st_table*, st_sort_field*, unsigned, SQL_SELECT*, unsigned long, unsigned long*) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x81F56A4: create_sort_index(THD*, JOIN*, st_order*, unsigned long, unsigned long) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x8201904: JOIN::exec() (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x8203AE7: mysql_select(THD*, Item***, TABLE_LIST*, unsigned, List<Item>&, Item*, unsigned, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x820436E: handle_select(THD*, st_lex*, select_result*, unsigned long) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x81AC028: mysql_execute_command(THD*) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x81B14BB: mysql_parse(THD*, char const*, unsigned, char const**) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851== 
==18851== 
==18851== 65,581 bytes in 12 blocks are indirectly lost in loss record 6 of 7
==18851==    at 0x4022765: malloc (vg_replace_malloc.c:149)
==18851==    by 0x831A874: my_malloc (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x831A98B: my_strdup (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x831A421: open_cached_file (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x8219F6A: Unique::get(st_table*) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x824B166: QUICK_INDEX_MERGE_SELECT::read_keys_and_merge() (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x825B5AD: find_all_keys(st_sort_param*, SQL_SELECT*, unsigned char**, st_io_cache*, st_io_cache*, st_io_cache*) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x825D7A8: filesort(THD*, st_table*, st_sort_field*, unsigned, SQL_SELECT*, unsigned long, unsigned long*) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x81F56A4: create_sort_index(THD*, JOIN*, st_order*, unsigned long, unsigned long) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x8201904: JOIN::exec() (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x8203AE7: mysql_select(THD*, Item***, TABLE_LIST*, unsigned, List<Item>&, Item*, unsigned, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x820436E: handle_select(THD*, st_lex*, select_result*, unsigned long) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851== 
==18851== 
==18851== 1,408,664 bytes in 8 blocks are possibly lost in loss record 7 of 7
==18851==    at 0x4022765: malloc (vg_replace_malloc.c:149)
==18851==    by 0x831A874: my_malloc (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x825AA8F: init_read_record(st_read_record*, THD*, st_table*, SQL_SELECT*, int, bool) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x824B1A9: QUICK_INDEX_MERGE_SELECT::read_keys_and_merge() (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x825B5AD: find_all_keys(st_sort_param*, SQL_SELECT*, unsigned char**, st_io_cache*, st_io_cache*, st_io_cache*) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x825D7A8: filesort(THD*, st_table*, st_sort_field*, unsigned, SQL_SELECT*, unsigned long, unsigned long*) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x81F56A4: create_sort_index(THD*, JOIN*, st_order*, unsigned long, unsigned long) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x8201904: JOIN::exec() (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x8203AE7: mysql_select(THD*, Item***, TABLE_LIST*, unsigned, List<Item>&, Item*, unsigned, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x820436E: handle_select(THD*, st_lex*, select_result*, unsigned long) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x81AC028: mysql_execute_command(THD*) (in /usr/local/mysql-5.0/libexec/mysqld)
==18851==    by 0x81B14BB: mysql_parse(THD*, char const*, unsigned, char const**) (in /usr/local/mysql-5.0/libexec/mysqld)