aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface.1
diff options
context:
space:
mode:
authorGravatar Andrew Clayton <andrew@digital-domain.net>2012-07-12 23:28:47 +0100
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-07-12 18:19:47 -0700
commit7fe652ab5738717ba443ae9de2b8f437103fd71b (patch)
tree707aafc488689dcf882d2942fdbcde7ba1335ab9 /subsurface.1
parenta3ead9fb862207749d23368db9b857559c0dde78 (diff)
downloadsubsurface-7fe652ab5738717ba443ae9de2b8f437103fd71b.tar.gz
file.c: Fix a file descriptor leak in readfile()
In file.c::readfile() the file was being opened once at fd declaration time and then again a few lines later and only being closed once. Remove the open() at fd declaration time leaving the later one where the fd check is done. Signed-off-by: Andrew Clayton <andrew@digital-domain.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'subsurface.1')
0 files changed, 0 insertions, 0 deletions