[tracker] tracker-extract-gif: Fix file descriptor leak in error case
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract-gif: Fix file descriptor leak in error case
- Date: Tue, 27 Sep 2011 15:41:56 +0000 (UTC)
commit 298e3532052c2fd7765000cc3c46929a9192604f
Author: JÃrg Billeter <j bitron ch>
Date: Tue Sep 27 16:50:04 2011 +0200
tracker-extract-gif: Fix file descriptor leak in error case
src/tracker-extract/tracker-extract-gif.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gif.c b/src/tracker-extract/tracker-extract-gif.c
index d652dd1..b97851d 100644
--- a/src/tracker-extract/tracker-extract-gif.c
+++ b/src/tracker-extract/tracker-extract-gif.c
@@ -621,6 +621,7 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
if ((gifFile = DGifOpenFileHandle (fd)) == NULL) {
PrintGifError ();
+ close (fd);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]