From: benno Date: Fri, 22 Jan 2021 13:07:17 +0000 (+0000) Subject: fix a memory leak, found by rob@ in relayd. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=25f402c630220733efb156a201ee2a6b8d25500e;p=openbsd fix a memory leak, found by rob@ in relayd. ok tb@ --- 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)