From 91f67c7835552b7a6cdcd43b8a9df32be3e4bd61 Mon Sep 17 00:00:00 2001 From: mmcc Date: Wed, 28 Oct 2015 15:45:52 +0000 Subject: While I'm in here, drop a NULL-check before free. --- usr.sbin/httpd/httpd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/httpd/httpd.c b/usr.sbin/httpd/httpd.c index b9157abbe64..fb92bb68e32 100644 --- a/usr.sbin/httpd/httpd.c +++ b/usr.sbin/httpd/httpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: httpd.c,v 1.42 2015/10/26 11:03:29 jung Exp $ */ +/* $OpenBSD: httpd.c,v 1.43 2015/10/28 15:45:51 mmcc Exp $ */ /* * Copyright (c) 2014 Reyk Floeter @@ -454,8 +454,7 @@ parent_dispatch_logger(int fd, struct privsep_proc *p, struct imsg *imsg) if (IMSG_DATA_SIZE(imsg) > 0) str = get_string(imsg->data, IMSG_DATA_SIZE(imsg)); parent_reload(env, CONFIG_RELOAD, str); - if (str != NULL) - free(str); + free(str); break; case IMSG_CTL_SHUTDOWN: parent_shutdown(env); -- cgit v1.2.3