Details
- 
    
Task
 - 
    Status: Open (View Workflow)
 - 
    
Major
 - 
    Resolution: Unresolved
 - 
    None
 - 
    None
 - 
    None
 
Description
It is possible to add valgrind support to mysql-test/suite/unit/suite.pm
(check $::opt_valgrind and run the command via valgrind)
The problem is that our unit test are not valgrind safe.
when the cast will be done also following test should be added:
					#include "mysql.h"
			 | 
		
					#include "mysqld_error.h"
			 | 
		
| 
					 | 
		
					int main(int argc __attribute__((unused)), char **argv __attribute__((unused)))
			 | 
		
					{
			 | 
		
					  for (int i= 0; i < 5; i++)
			 | 
		
					  {
			 | 
		
					    MYSQL connection, *c= 0;
			 | 
		
| 
					 | 
		
					    c = mysql_init(&connection);
			 | 
		
					    c = mysql_real_connect(&connection,
			 | 
		
					                           "localhost", "invalid", "invalid",
			 | 
		
					                           0, 0, 0, 0);
			 | 
		
					  }
			 | 
		
					}
			 | 
		
Attachments
Issue Links
- relates to
 - 
                    
MDEV-10455 libmariadbclient18 + MySQL-python leaks memory on failed connections
-         
 - Closed
 
 -         
 - 
                    
MDEV-10455 libmariadbclient18 + MySQL-python leaks memory on failed connections
-         
 - Closed
 
 -