From 6aa7cabb99c451bdb136132602e43832a9a140b1 Mon Sep 17 00:00:00 2001 From: mmcc Date: Wed, 9 Dec 2015 17:55:43 +0000 Subject: Remove NULL-checks before free(). ok tb@ --- usr.bin/cvs/server.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.bin/cvs/server.c') 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 * @@ -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); -- cgit v1.2.3