summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-26 16:15:00 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-26 16:15:00 -0700
commitab92831be0e862622105f015fe8c390715d2aae9 (patch)
treea8907704c9924753c5f0948d4a54e04c700a54be
parent4ae1b3d5f5330a8f7bd8880860a204000081095c (diff)
Replace sole call to uFree() with direct call to free()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--psgeom.c2
-rw-r--r--utils.c10
-rw-r--r--utils.h1
3 files changed, 1 insertions, 12 deletions
diff --git a/psgeom.c b/psgeom.c
index 44f7994..0365cee 100644
--- a/psgeom.c
+++ b/psgeom.c
@@ -396,7 +396,7 @@ static void
ClearFontStuff(FontStuff *stuff)
{
if (stuff && stuff->foundry)
- uFree(stuff->foundry);
+ free(stuff->foundry);
bzero(stuff, sizeof(FontStuff));
return;
}
diff --git a/utils.c b/utils.c
index 70887c7..240ac1b 100644
--- a/utils.c
+++ b/utils.c
@@ -50,16 +50,6 @@ uCalloc(unsigned n, unsigned size)
return ((Opaque) calloc(n, size));
}
-/***====================================================================***/
-
-void
-uFree(Opaque ptr)
-{
- if (ptr != (Opaque) NULL)
- free((char *) ptr);
- return;
-}
-
/***====================================================================***/
diff --git a/utils.h b/utils.h
index 436809e..c277d33 100644
--- a/utils.h
+++ b/utils.h
@@ -79,7 +79,6 @@ typedef int Comparison;
extern Opaque uAlloc(unsigned /* size */);
extern Opaque uCalloc(unsigned /* n */ ,
unsigned /* size */);
-extern void uFree(Opaque /* ptr */);
#define uTypedAlloc(t) ((t *)uAlloc((unsigned)sizeof(t)))
#define uTypedCalloc(n,t) ((t *)uCalloc((unsigned)n,(unsigned)sizeof(t)))