2 * This file is part of mutt-ng, see http://www.muttng.org/.
3 * It's licensed under the GNU General Public License,
4 * please see the file GPL in the top level source directory.
13 void _mem_realloc (void *ptr, size_t siz, int line, const char* fname) {
15 void **p = (void **) ptr;
19 free (*p); /* __MEM_CHECKED__ */
26 r = (void *) realloc (*p, siz); /* __MEM_CHECKED__ */
28 /* realloc(NULL, nbytes) doesn't seem to work under SunOS 4.1.x --- __MEM_CHECKED__ */
29 r = (void *) malloc (siz); /* __MEM_CHECKED__ */
33 exit_fatal ("mem_realloc", _("Out of memory!"), line, fname, 1);