# Ruby:r11887: \* ext/thread/thread.c: Use xmalloc()/xfree() in

**URL:** <https://www.ruby-forum.com/t/ruby-ext-thread-thread-c-use-xmalloc-xfree-in/86824>\
**Category:** Development\
**Created:** [February 26, 2007, 7:52am UTC](https://www.ruby-forum.com/t/ruby-ext-thread-thread-c-use-xmalloc-xfree-in/86824 "2007-02-26T07:52:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shugo\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ea924/32.png) [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Post date:** [February 26, 2007, 7:52am UTC](https://www.ruby-forum.com/t/ruby-ext-thread-thread-c-use-xmalloc-xfree-in/86824/1 "2007-02-26T07:52:54Z")

</div>

å‰ç”°ã§ã™ã€‚

removed\_email\_address@domain.invalid wrote:

> ```
> * ext/thread/thread.c: Use xmalloc()/xfree() instead of
> malloc()/free(); pointed out by shugo in [ruby-dev:30412].
> 
> ```

æ—©é€Ÿã‚ã‚ŠãŒã¨ã†ã”ã–ã„ã¾ã™ã€‚  
è‡ªåˆ†ã§xmalloc()ã¨æ›¸ã„ãŸã‚“ã§ã™ãŒã€ã©ã¡ã‚‰ã‹ã¨ã„ã†ã¨ALLOC()ã®æ–¹ãŒ  
ãƒ¡ãƒ³ãƒ†ãƒŠãƒ³ã‚¹ã—ã‚„ã™ã„ã‹ã‚‚ã—ã‚Œãªã„ã§ã™ã­ã€‚  
å‹•ä½œã«ã¯å½±éŸ¿ãªã„ã¨æ€ã†ã®ã§å¯¾å¿œã¯ãŠã¾ã‹ã›ã—ã¾ã™ã€‚

---

<div class="post-metadata">

**Author:** ![Shugo\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ea924/32.png) [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Post date:** [March 3, 2007, 11:09am UTC](https://www.ruby-forum.com/t/ruby-ext-thread-thread-c-use-xmalloc-xfree-in/86824/2 "2007-03-03T11:09:29Z")

</div>

At Mon, 26 Feb 2007 15:52:22 +0900,  
Shugo M. wrote:

> removed\_email\_address@domain.invalid wrote:
> 
> > ```
> > * ext/thread/thread.c: Use xmalloc()/xfree() instead of
> > malloc()/free(); pointed out by shugo in [ruby-dev:30412].
> > 
> > ```
> 
> æ—©é€Ÿã‚ã‚ŠãŒã¨ã†ã”ã–ã„ã¾ã™ã€‚  
> è‡ªåˆ†ã§xmalloc()ã¨æ›¸ã„ãŸã‚“ã§ã™ãŒã€ã©ã¡ã‚‰ã‹ã¨ã„ã†ã¨ALLOC()ã®æ–¹ãŒ  
> ãƒ¡ãƒ³ãƒ†ãƒŠãƒ³ã‚¹ã—ã‚„ã™ã„ã‹ã‚‚ã—ã‚Œãªã„ã§ã™ã­ã€‚  
> å‹•ä½œã«ã¯å½±éŸ¿ãªã„ã¨æ€ã†ã®ã§å¯¾å¿œã¯ãŠã¾ã‹ã›ã—ã¾ã™ã€‚

ã€€ç¢ºã‹ã«ã€‚æ›¸ãæ›ãˆã¾ã—ãŸã€‚

–  
/  
/\_\_ \_\_ [Akinori.org](http://Akinori.org) / [MUSHA.org](http://MUSHA.org)  
/ ) ) ) ) / [FreeBSD.org](http://FreeBSD.org) / [Ruby-lang.org](http://Ruby-lang.org)  
Akinori MUSHA aka / (\_ / ( (\_\_( @ [iDaemons.org](http://iDaemons.org) / and.or.jp

“Different eyes see different things,  
Different hearts beat on different strings –  
But there are times for you and me when all such things agree”
