Fix chan ref leak in fd_setfl()
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 31 Mar 2016 19:03:20 +0000 (15:03 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 31 Mar 2016 20:53:42 +0000 (16:53 -0400)
commitb19548e77b7b4f54b92ad3a9b11e59d8b00d0070
treeeb975ca9801a94a782e80267a389b57f1e54904b
parente9c625a08604ecee518b66b59422bbb8c50b2131
Fix chan ref leak in fd_setfl()

We could have thrown an error and leaked a ref to the chan.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/ns/sysfile.c