From 00d70eef2e4c4efcbf8ceddd8b37237303f7aec0 Mon Sep 17 00:00:00 2001 From: tobias Date: Wed, 13 Aug 2014 17:41:58 +0000 Subject: [PATCH] Always call freeaddrinfo after getaddrinfo. ok dlg@ --- usr.sbin/tftpd/tftpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/tftpd/tftpd.c b/usr.sbin/tftpd/tftpd.c index 053a893a93a..b3497ae22c7 100644 --- a/usr.sbin/tftpd/tftpd.c +++ b/usr.sbin/tftpd/tftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tftpd.c,v 1.21 2014/08/13 01:03:56 dlg Exp $ */ +/* $OpenBSD: tftpd.c,v 1.22 2014/08/13 17:41:58 tobias Exp $ */ /* * Copyright (c) 2012 David Gwynne @@ -550,6 +550,7 @@ tftpd_listen(const char *addr, const char *port, int family) if (TAILQ_EMPTY(&tftp_servers)) errc(1, cerrno, "%s", cause); + freeaddrinfo(res0); return (0); } -- 2.20.1