diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-10 14:10:32 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-11 15:36:06 -0800 |
commit | 2ac6a7f029d8855fbb4e8024aab0511727ac3a67 (patch) | |
tree | e358d01442ad5e619d9f328a79c9309cf6ff6672 /compat.c | |
parent | 8d85bd1e2f9473958b235caf7af9913b518f73dd (diff) |
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 'compat.c')
-rw-r--r-- | compat.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -134,7 +134,7 @@ static void ClearCompatInfo(CompatInfo * info, XkbDescPtr xkb) { if (info->name != NULL) - uFree(info->name); + free(info->name); info->name = NULL; info->dflt.defs.defined = 0; info->dflt.defs.merge = MergeAugment; @@ -426,7 +426,7 @@ HandleIncludeCompatMap(IncludeStmt * stmt, if (stmt->stmt != NULL) { if (included.name != NULL) - uFree(included.name); + free(included.name); included.name = stmt->stmt; stmt->stmt = NULL; } @@ -881,6 +881,6 @@ CompileCompatMap(XkbFile * file, return True; } if (info.interps != NULL) - uFree(info.interps); + free(info.interps); return False; } |