diff options
Diffstat (limited to 'usr.bin/rcs/rcsdiff.c')
-rw-r--r-- | usr.bin/rcs/rcsdiff.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/usr.bin/rcs/rcsdiff.c b/usr.bin/rcs/rcsdiff.c index bd3a3edbdf6..268070bd8bb 100644 --- a/usr.bin/rcs/rcsdiff.c +++ b/usr.bin/rcs/rcsdiff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsdiff.c,v 1.82 2015/01/16 06:40:11 deraadt Exp $ */ +/* $OpenBSD: rcsdiff.c,v 1.83 2015/06/13 20:15:21 nicm Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -358,10 +358,8 @@ out: buf_free(b1); if (b2 != NULL) buf_free(b2); - if (path1 != NULL) - xfree(path1); - if (path2 != NULL) - xfree(path2); + free(path1); + free(path2); return (ret); } @@ -437,10 +435,8 @@ out: buf_free(b1); if (b2 != NULL) buf_free(b2); - if (path1 != NULL) - xfree(path1); - if (path2 != NULL) - xfree(path2); + free(path1); + free(path2); return (ret); } |