aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
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 /scripts
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 'scripts')
0 files changed, 0 insertions, 0 deletions