diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-12-09 17:55:43 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-12-09 17:55:43 +0000 |
commit | 6aa7cabb99c451bdb136132602e43832a9a140b1 (patch) | |
tree | 9ee729f430bd7b79d4194463c3df8fc317776b88 /usr.bin/cvs/server.c | |
parent | 077f924aac1efa1d448dca3b171b49380033cf30 (diff) |
Remove NULL-checks before free(). ok tb@
Diffstat (limited to 'usr.bin/cvs/server.c')
-rw-r--r-- | usr.bin/cvs/server.c | 5 |
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); |