artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41241ca
)
Always call freeaddrinfo after getaddrinfo.
author
tobias
<tobias@openbsd.org>
Wed, 13 Aug 2014 17:41:58 +0000
(17:41 +0000)
committer
tobias
<tobias@openbsd.org>
Wed, 13 Aug 2014 17:41:58 +0000
(17:41 +0000)
ok dlg@
usr.sbin/tftpd/tftpd.c
patch
|
blob
|
history
diff --git
a/usr.sbin/tftpd/tftpd.c
b/usr.sbin/tftpd/tftpd.c
index
053a893
..
b3497ae
100644
(file)
--- a/
usr.sbin/tftpd/tftpd.c
+++ b/
usr.sbin/tftpd/tftpd.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: tftpd.c,v 1.2
1 2014/08/13 01:03:56 dlg Exp $
*/
+/* $OpenBSD: tftpd.c,v 1.2
2 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);
}