cvs: php4 /ext/gd/libgd gdhelpers.c

From: Date: Tue, 12 Nov 2002 16:02:04 +0000
Subject: cvs: php4 /ext/gd/libgd gdhelpers.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-16032@lists.php.net to get a copy of this message
helly Tue Nov 12 11:02:04 2002 EDT Modified files: /php4/ext/gd/libgd gdhelpers.c Log: use *e*malloc functions Index: php4/ext/gd/libgd/gdhelpers.c diff -u php4/ext/gd/libgd/gdhelpers.c:1.2 php4/ext/gd/libgd/gdhelpers.c:1.3 --- php4/ext/gd/libgd/gdhelpers.c:1.2 Sun Aug 11 09:50:27 2002 +++ php4/ext/gd/libgd/gdhelpers.c Tue Nov 12 11:02:03 2002 @@ -1,3 +1,9 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "php.h" + #include "gd.h" #include "gdhelpers.h" #include <stdlib.h> @@ -74,23 +80,23 @@ void * gdCalloc (size_t nmemb, size_t size) { - return calloc (nmemb, size); + return ecalloc (nmemb, size); } void * gdMalloc (size_t size) { - return malloc (size); + return emalloc (size); } void * gdRealloc (void *ptr, size_t size) { - return realloc (ptr, size); + return erealloc (ptr, size); } void gdFree (void *ptr) { - free (ptr); + efree (ptr); }

« previous php.cvs (#16032) next »