diff options
author | des <des@FreeBSD.org> | 2014-03-22 15:23:38 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2014-03-22 15:23:38 +0000 |
commit | ab9e0bc08282397f61df5d0ea89a81a2322ec040 (patch) | |
tree | 5186034782b608fd13a7408b5852ad248f6bdc35 /openbsd-compat/bsd-poll.c | |
parent | 45d0197dd79eceffb5bbc29f75199eb09af5a5f9 (diff) | |
download | FreeBSD-src-ab9e0bc08282397f61df5d0ea89a81a2322ec040.zip FreeBSD-src-ab9e0bc08282397f61df5d0ea89a81a2322ec040.tar.gz |
Vendor import of OpenSSH 6.6p1.
Diffstat (limited to 'openbsd-compat/bsd-poll.c')
-rw-r--r-- | openbsd-compat/bsd-poll.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/openbsd-compat/bsd-poll.c b/openbsd-compat/bsd-poll.c index c7ef827..73a8524 100644 --- a/openbsd-compat/bsd-poll.c +++ b/openbsd-compat/bsd-poll.c @@ -1,4 +1,4 @@ -/* $Id: bsd-poll.c,v 1.5 2013/11/08 10:12:58 dtucker Exp $ */ +/* $Id: bsd-poll.c,v 1.6 2014/02/05 23:44:13 dtucker Exp $ */ /* * Copyright (c) 2004, 2005, 2007 Darren Tucker (dtucker at zip com au). @@ -109,12 +109,9 @@ poll(struct pollfd *fds, nfds_t nfds, int timeout) } out: - if (readfds != NULL) - free(readfds); - if (writefds != NULL) - free(writefds); - if (exceptfds != NULL) - free(exceptfds); + free(readfds); + free(writefds); + free(exceptfds); if (ret == -1) errno = saved_errno; return ret; |