diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2014-08-13 17:41:59 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2014-08-13 17:41:59 +0000 |
commit | 88bb8413786446baa70e1c5e69775f968147e5a9 (patch) | |
tree | 83cf8b41626e405c5ff637a3451242f4c3c2d081 /usr.sbin/tftpd | |
parent | 20f1ee3e13655a1b8a061b9e7139ca795e622bc4 (diff) |
Always call freeaddrinfo after getaddrinfo.
ok dlg@
Diffstat (limited to 'usr.sbin/tftpd')
-rw-r--r-- | usr.sbin/tftpd/tftpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <dlg@uq.edu.au> @@ -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); } |