mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
Possible Resource leak: fd
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@35 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7bc782752b
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:
@@ -80,6 +80,7 @@ int fh_bmp_load(const char *name,unsigned char **buffer,int* xp,int* yp)
|
|||||||
raster = buff[0] + (buff[1]<<8) + (buff[2]<<16) + (buff[3]<<24);
|
raster = buff[0] + (buff[1]<<8) + (buff[2]<<16) + (buff[3]<<24);
|
||||||
|
|
||||||
if (lseek(fd, BMP_BPP_OFFSET, SEEK_SET) == -1) {
|
if (lseek(fd, BMP_BPP_OFFSET, SEEK_SET) == -1) {
|
||||||
|
close(fd);
|
||||||
return(FH_ERROR_FORMAT);
|
return(FH_ERROR_FORMAT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user