mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
fix Resource leak
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@31 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8402248f8e
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2009-12-08 (Tue, 08 Dec 2009)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -123,6 +123,7 @@ int CHDDMenuHandler::doMenu ()
|
|||||||
}
|
}
|
||||||
if (ioctl(fd, BLKGETSIZE64, &bytes))
|
if (ioctl(fd, BLKGETSIZE64, &bytes))
|
||||||
perror("BLKGETSIZE64");
|
perror("BLKGETSIZE64");
|
||||||
|
close(fd);
|
||||||
|
|
||||||
megabytes = bytes/1000000;
|
megabytes = bytes/1000000;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user