From d9278945c2bcb815a2170f3d4e72070247ec4a54 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Tue, 8 Dec 2009 17:57:31 +0000 Subject: [PATCH] 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: https://github.com/neutrino-images/ni-neutrino/commit/7bc782752b158f2208e8b685e4248b0235bf2660 Author: Jacek Jendrzej Date: 2009-12-08 (Tue, 08 Dec 2009) ------------------ This commit was generated by Migit --- src/driver/pictureviewer/bmp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/driver/pictureviewer/bmp.cpp b/src/driver/pictureviewer/bmp.cpp index 84ba4be2a..6f2ac3fca 100644 --- a/src/driver/pictureviewer/bmp.cpp +++ b/src/driver/pictureviewer/bmp.cpp @@ -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); if (lseek(fd, BMP_BPP_OFFSET, SEEK_SET) == -1) { + close(fd); return(FH_ERROR_FORMAT); }