summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diffdir.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-09-25 16:16:26 +0000
committertedu <tedu@openbsd.org>2015-09-25 16:16:26 +0000
commita79a261740702375cbbbddc8c5d35134592f684e (patch)
treeea74ed88f6c9e176b7e96ca144a0dba2201d64c6 /usr.bin/diff/diffdir.c
parent3.14 backports of some Broadwell fixes from (diff)
downloadwireguard-openbsd-a79a261740702375cbbbddc8c5d35134592f684e.tar.xz
wireguard-openbsd-a79a261740702375cbbbddc8c5d35134592f684e.zip
xmalloc/free wrappers don't need to support 20 year old non comformance
Diffstat (limited to 'usr.bin/diff/diffdir.c')
-rw-r--r--usr.bin/diff/diffdir.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/diff/diffdir.c b/usr.bin/diff/diffdir.c
index dc6f17fd3c4..eac7497dccb 100644
--- a/usr.bin/diff/diffdir.c
+++ b/usr.bin/diff/diffdir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diffdir.c,v 1.43 2015/01/16 06:40:07 deraadt Exp $ */
+/* $OpenBSD: diffdir.c,v 1.44 2015/09/25 16:16:26 tedu Exp $ */
/*
* Copyright (c) 2003, 2010 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -166,13 +166,13 @@ diffdir(char *p1, char *p2, int flags)
closem:
if (dirp1 != NULL) {
for (dp1 = dirp1; dp1 < edp1; dp1++)
- xfree(*dp1);
- xfree(dirp1);
+ free(*dp1);
+ free(dirp1);
}
if (dirp2 != NULL) {
for (dp2 = dirp2; dp2 < edp2; dp2++)
- xfree(*dp2);
- xfree(dirp2);
+ free(*dp2);
+ free(dirp2);
}
}