mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* ext/bigdecimal/bigdecimal.c (VpMult): fix double free.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									1913c0e857
								
							
						
					
					
						commit
						4e573bf068
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		|  | @ -1,3 +1,7 @@ | |||
| Tue Aug 26 00:02:49 2008  Yusuke Endoh  <mame@tsg.ne.jp> | ||||
| 
 | ||||
| 	* ext/bigdecimal/bigdecimal.c (VpMult): fix double free. | ||||
| 
 | ||||
| Mon Aug 25 23:59:36 2008  Tanaka Akira  <akr@fsij.org> | ||||
| 
 | ||||
| 	* transcode.c (rb_econv_open): make last_tc NULL if there are only | ||||
|  |  | |||
|  | @ -3165,7 +3165,7 @@ VpMult(Real *c, Real *a, Real *b) | |||
| 
 | ||||
|     c->exponent = a->exponent;    /* set exponent */ | ||||
|     if(!AddExponent(c,b->exponent)) { | ||||
| 	VpFree(c); | ||||
| 	if(w) VpFree(c); | ||||
| 	return 0; | ||||
|     } | ||||
|     VpSetSign(c,VpGetSign(a)*VpGetSign(b));    /* set sign  */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 mame
						mame