summaryrefslogtreecommitdiff
path: root/xkbpath.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 /xkbpath.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 'xkbpath.c')
-rw-r--r--xkbpath.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xkbpath.c b/xkbpath.c
index 0310872..1e2b243 100644
--- a/xkbpath.c
+++ b/xkbpath.c
@@ -123,7 +123,7 @@ XkbParseIncludeMap(char **str_inout, char **file_rtrn, char **map_rtrn,
}
else if (str[0] == '(')
{
- uFree(*extra_data);
+ free(*extra_data);
return False;
}
else
@@ -134,8 +134,8 @@ XkbParseIncludeMap(char **str_inout, char **file_rtrn, char **map_rtrn,
tmp = strchr(str, ')');
if ((tmp == NULL) || (tmp[1] != '\0'))
{
- uFree(*file_rtrn);
- uFree(*extra_data);
+ free(*file_rtrn);
+ free(*extra_data);
return False;
}
*tmp++ = '\0';
@@ -184,7 +184,7 @@ XkbClearIncludePath(void)
{
if (includePath[i] != NULL)
{
- uFree(includePath[i]);
+ free(includePath[i]);
includePath[i] = NULL;
}
}