From ab92831be0e862622105f015fe8c390715d2aae9 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 26 May 2014 16:15:00 -0700 Subject: Replace sole call to uFree() with direct call to free() Signed-off-by: Alan Coopersmith --- psgeom.c | 2 +- utils.c | 10 ---------- utils.h | 1 - 3 files changed, 1 insertion(+), 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))) -- cgit v1.2.3