diff options
author | 2021-01-22 13:07:17 +0000 | |
---|---|---|
committer | 2021-01-22 13:07:17 +0000 | |
commit | 25f402c630220733efb156a201ee2a6b8d25500e (patch) | |
tree | 540d99af363336e8b460938fa3662cab4a1642e3 | |
parent | Revert clear changes to writing as they don't work properly, better (diff) | |
download | wireguard-openbsd-25f402c630220733efb156a201ee2a6b8d25500e.tar.xz wireguard-openbsd-25f402c630220733efb156a201ee2a6b8d25500e.zip |
fix a memory leak, found by rob@ in relayd.
ok tb@
-rw-r--r-- | usr.sbin/httpd/parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
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 <mpfr@fn.de> @@ -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) |