mirror of
				git://erdgeist.org/opentracker
				synced 2025-11-04 11:53:22 +08:00 
			
		
		
		
	clear the freed mempointer
This commit is contained in:
		
							parent
							
								
									4569b9ffdf
								
							
						
					
					
						commit
						484565b6b7
					
				@ -103,6 +103,7 @@ static int vector_remove_peer( ot_vector *vector, ot_peer *peer ) {
 | 
				
			|||||||
    /* for peer pools its safe to let them go,
 | 
					    /* for peer pools its safe to let them go,
 | 
				
			||||||
       in 999 of 1000 this happens in older pools, that won't ever grow again */
 | 
					       in 999 of 1000 this happens in older pools, that won't ever grow again */
 | 
				
			||||||
    free( vector->data );
 | 
					    free( vector->data );
 | 
				
			||||||
 | 
					    vector->data = NULL;
 | 
				
			||||||
    vector->space = 0;
 | 
					    vector->space = 0;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  return exactmatch;
 | 
					  return exactmatch;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user