]> granicus.if.org Git - php/commitdiff
- Remove e*() memory function calls from the branch
authorDerick Rethans <derick@php.net>
Mon, 18 Nov 2002 13:00:52 +0000 (13:00 +0000)
committerDerick Rethans <derick@php.net>
Mon, 18 Nov 2002 13:00:52 +0000 (13:00 +0000)
ext/gd/libgd/gdft.c
ext/gd/libgd/gdhelpers.c

index 022604b6ad6980cf212d57645da0ab70aa4e38bf..bc39f09c763c565000e1509aae75139771430adf 100644 (file)
@@ -347,7 +347,7 @@ fontFetch (char **error, void *key)
   FT_CharMap charmap;
 
   a = (font_t *) gdMalloc (sizeof (font_t));
-  a->fontlist = gdEstrdup (b->fontlist);
+  a->fontlist = strdup (b->fontlist);
   a->library = b->library;
 
   /*
@@ -356,7 +356,7 @@ fontFetch (char **error, void *key)
   fontsearchpath = getenv ("GDFONTPATH");
   if (!fontsearchpath)
     fontsearchpath = DEFAULT_FONTPATH;
-  fontlist = gdEstrdup (a->fontlist);
+  fontlist = strdup (a->fontlist);
 
   /*
    * Must use gd_strtok_r else pointer corrupted by strtok in nested loop.
@@ -366,7 +366,7 @@ fontFetch (char **error, void *key)
     {
 
       /* make a fresh copy each time - strtok corrupts it. */
-      path = gdEstrdup (fontsearchpath);
+      path = strdup (fontsearchpath);
       /*
        * Allocate an oversized buffer that is guaranteed to be
        * big enough for all paths to be tested.
index 32620e855159dc9dc1bd64c058c8cf63f981e1ba..8fdd8c08aba0fb34bfbe0fafc39e6b3e69e00db5 100644 (file)
@@ -80,29 +80,23 @@ gd_strtok_r (char *s, char *sep, char **state)
 void *
 gdCalloc (size_t nmemb, size_t size)
 {
-  return ecalloc (nmemb, size);
+  return calloc (nmemb, size);
 }
 
 void *
 gdMalloc (size_t size)
 {
-  return emalloc (size);
+  return malloc (size);
 }
 
 void *
 gdRealloc (void *ptr, size_t size)
 {
-  return erealloc (ptr, size);
+  return realloc (ptr, size);
 }
 
 void
 gdFree (void *ptr)
 {
-  efree (ptr);
-}
-
-char *
-gdEstrdup (const char *ptr)
-{
-  return estrdup(ptr);
+  free (ptr);
 }