summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/server.c
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-09 17:55:43 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-09 17:55:43 +0000
commit6aa7cabb99c451bdb136132602e43832a9a140b1 (patch)
tree9ee729f430bd7b79d4194463c3df8fc317776b88 /usr.bin/cvs/server.c
parent077f924aac1efa1d448dca3b171b49380033cf30 (diff)
Remove NULL-checks before free(). ok tb@
Diffstat (limited to 'usr.bin/cvs/server.c')
-rw-r--r--usr.bin/cvs/server.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/cvs/server.c b/usr.bin/cvs/server.c
index 209a66458e6..1ac745a233c 100644
--- a/usr.bin/cvs/server.c
+++ b/usr.bin/cvs/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.103 2015/11/05 09:48:21 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.104 2015/12/09 17:55:42 mmcc Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -366,8 +366,7 @@ cvs_server_directory(char *data)
free(entry);
}
- if (server_currentdir != NULL)
- free(server_currentdir);
+ free(server_currentdir);
server_currentdir = p;
free(dir);