[tracker] tracker-extract: Don't leak FD on tiff extractor when opening file



commit 6e1f29c9ebb087093c1d8991e434db4ec4f49581
Author: Martyn Russell <martyn lanedo com>
Date:   Mon Mar 3 21:04:39 2014 +0000

    tracker-extract: Don't leak FD on tiff extractor when opening file

 src/tracker-extract/tracker-extract-tiff.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-tiff.c b/src/tracker-extract/tracker-extract-tiff.c
index 464eed3..471ddfe 100644
--- a/src/tracker-extract/tracker-extract-tiff.c
+++ b/src/tracker-extract/tracker-extract-tiff.c
@@ -857,6 +857,7 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
        tracker_xmp_free (xd);
        tracker_iptc_free (id);
        g_free (uri);
+       close (fd);
 
        return TRUE;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]