mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Handle more mem alloc issues found with failmalloc
This commit is contained in:
		
							parent
							
								
									c6bacd5606
								
							
						
					
					
						commit
						18b6adf9b2
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -121,8 +121,10 @@ PyFuture_FromAST(mod_ty mod, const char *filename)
 | 
			
		|||
	PyFutureFeatures *ff;
 | 
			
		||||
 | 
			
		||||
	ff = (PyFutureFeatures *)PyObject_Malloc(sizeof(PyFutureFeatures));
 | 
			
		||||
	if (ff == NULL)
 | 
			
		||||
	if (ff == NULL) {
 | 
			
		||||
		PyErr_NoMemory();
 | 
			
		||||
		return NULL;
 | 
			
		||||
	}
 | 
			
		||||
	ff->ff_features = 0;
 | 
			
		||||
	ff->ff_lineno = -1;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue