Fix a heavy memory corruption in p()/print()
If you free locally allocated ruby objects you're gonna have a BAAAD time
This commit is contained in:
		
							parent
							
								
									49e7b66a53
								
							
						
					
					
						commit
						ce70b6dc95
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
					@ -114,8 +114,6 @@ static void printP(int argc, VALUE *argv,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	showMsg(RSTRING_PTR(dispString));
 | 
						showMsg(RSTRING_PTR(dispString));
 | 
				
			||||||
 | 
					 | 
				
			||||||
	rb_str_free(dispString);
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RB_METHOD(mriPrint)
 | 
					RB_METHOD(mriPrint)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue