fix Resource leak

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@31 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
satbaby
2009-12-08 16:13:46 +00:00
parent e29964bb20
commit 8402248f8e

View File

@@ -123,6 +123,7 @@ int CHDDMenuHandler::doMenu ()
}
if (ioctl(fd, BLKGETSIZE64, &bytes))
perror("BLKGETSIZE64");
close(fd);
megabytes = bytes/1000000;