summaryrefslogtreecommitdiff
path: root/listing.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 /listing.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 'listing.c')
-rw-r--r--listing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/listing.c b/listing.c
index 795389b..f8b1186 100644
--- a/listing.c
+++ b/listing.c
@@ -318,13 +318,13 @@ AddDirectory(char *head, char *ptrn, char *rest, char *map)
(head ? head : ""), (head ? "/" : ""), filename);
if (stat(tmp, &sbuf) < 0)
{
- uFree(tmp);
+ free(tmp);
continue;
}
if (((rest != NULL) && (!S_ISDIR(sbuf.st_mode))) ||
((map != NULL) && (S_ISDIR(sbuf.st_mode))))
{
- uFree(tmp);
+ free(tmp);
continue;
}
if (S_ISDIR(sbuf.st_mode))