Fix memory leak on evaluation error
This commit is contained in:
		
							
								
								
									
										3
									
								
								ell.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								ell.c
									
									
									
									
									
								
							@@ -853,6 +853,9 @@ execute_statement
 | 
				
			|||||||
			return true;
 | 
								return true;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						item_free_list (*result);
 | 
				
			||||||
 | 
						*result = NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// In that case, `error' is NULL and there's nothing else to do anyway
 | 
						// In that case, `error' is NULL and there's nothing else to do anyway
 | 
				
			||||||
	if (!ctx->memory_failure) {
 | 
						if (!ctx->memory_failure) {
 | 
				
			||||||
		// This creates some form of a stack trace
 | 
							// This creates some form of a stack trace
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user