Memory leak in mysql_client_test.c
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.5 |
Invalid
|
Undecided
|
Unassigned | |||
5.6 |
Fix Released
|
Low
|
Laurynas Biveinis | |||
5.7 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
main.mysql_
Test ended at 2016-07-18 10:19:03
CURRENT_TEST: main.mysql_
mysqltest: At line 17: command "$MYSQL_CLIENT_TEST --getopt-
==2470==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 1272 byte(s) in 1 object(s) allocated from:
#0 0x7f9d88f27602 in malloc (/usr/lib/
#1 0x4ed714 in my_malloc /home/laurynas/
#2 0x483cf0 in mysql_init /home/laurynas/
#3 0x40b314 in mysql_client_init /home/laurynas/
#4 0x40e3fb in test_wl6587 /home/laurynas/
#5 0x475372 in main /home/laurynas/
#6 0x7f9d87c0a82f in __libc_start_main (/lib/x86_
SUMMARY: AddressSanitizer: 1272 byte(s) leaked in 1 allocation(s).
The fix is to backport
commit 3833aed1b94b184 37fecd7df948234 984a385770
Author: Jon Olav Hauglid <email address hidden>
Date: Tue Jun 23 11:15:17 2015 +0100
Bug#21246842: ASAN: MEMORY LEAK IN TEST_WL6587()
Fix memory leak in mysql_client_test - test_wl6587().
Close the mysql connection by calling mysql_close()
to free resources.
Also fix a number of valgrind warnings (uninitialized data)
in other tests.