emalloc memory header and malloc.
| From: | Yasuo Ohgaki | Date: | Fri, 05 Apr 2002 04:18:27 +0000 |
| Subject: | emalloc memory header and malloc. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-82114@lists.php.net to get a copy of this message | ||
Hi,
I would like to know what is the best way to
avoid overrun error message when lib functions
allocate memory with malloc and return pointer
to it.
Currently, I allocate memory by emalloc and copy
the content to it, then free memory allocated by
malloc.
It's obviously inefficient and I must be missing
something very simple.
Thank you.
--
Yasuo Ohgaki