mirror of
				https://github.com/vim/vim.git
				synced 2025-11-03 09:44:48 -05:00 
			
		
		
		
	patch 8.2.0544: memory leak in search test
Problem: Memory leak in search test. Solution: Free msgbuf. (Dominique Pelle, closes #5912)
This commit is contained in:
		@@ -1416,6 +1416,7 @@ do_search(
 | 
			
		||||
		// Reserve enough space for the search pattern + offset.
 | 
			
		||||
		len = STRLEN(p) + off_len + 3;
 | 
			
		||||
 | 
			
		||||
	    vim_free(msgbuf);
 | 
			
		||||
	    msgbuf = alloc(len);
 | 
			
		||||
	    if (msgbuf != NULL)
 | 
			
		||||
	    {
 | 
			
		||||
 
 | 
			
		||||
@@ -738,6 +738,8 @@ static char *(features[]) =
 | 
			
		||||
 | 
			
		||||
static int included_patches[] =
 | 
			
		||||
{   /* Add new patch number below this line */
 | 
			
		||||
/**/
 | 
			
		||||
    544,
 | 
			
		||||
/**/
 | 
			
		||||
    543,
 | 
			
		||||
/**/
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user