summaryrefslogtreecommitdiff
path: root/parseutils.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-10 14:10:32 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-11 15:36:06 -0800
commit2ac6a7f029d8855fbb4e8024aab0511727ac3a67 (patch)
treee358d01442ad5e619d9f328a79c9309cf6ff6672 /parseutils.c
parent8d85bd1e2f9473958b235caf7af9913b518f73dd (diff)
downloadxorg-app-xkbcomp-2ac6a7f029d8855fbb4e8024aab0511727ac3a67.tar.gz
Replace uFree() with direct free() calls
All these wrappers did was mess with types and add a test for NULL pointers that isn't needed in C89 and later. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'parseutils.c')
-rw-r--r--parseutils.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/parseutils.c b/parseutils.c
index 76876fb..3299245 100644
--- a/parseutils.c
+++ b/parseutils.c
@@ -528,7 +528,7 @@ KeyDeclMerge(KeyDef * into, KeyDef * from)
into->expr =
(ExprDef *) AppendStmt(&into->expr->common, &from->expr->common);
from->expr = NULL;
- uFree(from);
+ free(from);
return into;
}
@@ -595,8 +595,8 @@ OverlayKeyCreate(char *under, char *over)
};
strncpy(key->over, over, XkbKeyNameLength);
strncpy(key->under, under, XkbKeyNameLength);
- uFree(over);
- uFree(under);
+ free(over);
+ free(under);
}
return key;
}
@@ -762,7 +762,7 @@ IncludeCreate(char *str, unsigned merge)
if (first)
first->stmt = stmt;
else if (stmt)
- uFree(stmt);
+ free(stmt);
return first;
BAIL:
ERROR("Illegal include statement \"%s\"\n", stmt);
@@ -771,19 +771,19 @@ IncludeCreate(char *str, unsigned merge)
{
incl = first->next;
if (first->file)
- uFree(first->file);
+ free(first->file);
if (first->map)
- uFree(first->map);
+ free(first->map);
if (first->modifier)
- uFree(first->modifier);
+ free(first->modifier);
if (first->path)
- uFree(first->path);
+ free(first->path);
first->file = first->map = first->path = NULL;
- uFree(first);
+ free(first);
first = incl;
}
if (stmt)
- uFree(stmt);
+ free(stmt);
return NULL;
}