Memory leak in non-existing defaults file handling

Bug #1588344 reported by Laurynas Biveinis on 2016-06-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.5
Fix Released
Low
Laurynas Biveinis
5.6
Fix Released
Low
Laurynas Biveinis
5.7
Invalid
Low
Unassigned

Bug Description

main.mysqld--defaults-file w1 [ fail ]
        Test ended at 2016-05-23 07:21:14

CURRENT_TEST: main.mysqld--defaults-file
mysqltest: At line 11: command "$MYSQLD --defaults-file=/path/with/no/extension --print-defaults 2>&1" failed with wrong error: 23

because

Could not open required defaults file: /path/with/no/extension
Fatal error in defaults handling. Program aborted

=================================================================
==29268==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7fea860e954a in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x9854a)
    #1 0xd3f6a0 in my_malloc /home/laurynas/mysql-server/mysys/my_malloc.c:38
    #2 0xcf9246 in init_dynamic_array2 /home/laurynas/mysql-server/mysys/array.c:70
    #3 0xd0170a in my_load_defaults /home/laurynas/mysql-server/mysys/default.c:569
    #4 0xd01e10 in load_defaults /home/laurynas/mysql-server/mysys/default.c:467
    #5 0x51a231 in mysqld_main(int, char**) /home/laurynas/mysql-server/sql/mysqld.cc:4527
    #6 0x50439e in main /home/laurynas/mysql-server/sql/main.cc:25
    #7 0x7fea84ba882f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)

SUMMARY: AddressSanitizer: 24 byte(s) leaked in 1 allocation(s).

This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers