From 25f402c630220733efb156a201ee2a6b8d25500e Mon Sep 17 00:00:00 2001 From: benno Date: Fri, 22 Jan 2021 13:07:17 +0000 Subject: [PATCH] fix a memory leak, found by rob@ in relayd. ok tb@ --- usr.sbin/httpd/parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/httpd/parse.y b/usr.sbin/httpd/parse.y index c3ccf3e52d4..b207dcab1e9 100644 --- a/usr.sbin/httpd/parse.y +++ b/usr.sbin/httpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.123 2021/01/18 18:47:49 tb Exp $ */ +/* $OpenBSD: parse.y,v 1.124 2021/01/22 13:07:17 benno Exp $ */ /* * Copyright (c) 2020 Matthias Pressfreund @@ -2143,6 +2143,7 @@ host_if(const char *s, struct addresslist *al, int max, log_warnx("%s: interface name truncated", __func__); freeifaddrs(ifap); + free(h); return (-1); } if (ipproto != -1) -- 2.20.1