[tracker/wip/passive-extraction] extract,gif: Plug a leak



commit 3ad3905fbd3d85da0cb06b4e64d6f6b96fb11963
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Jan 20 20:10:24 2014 +0100

    extract,gif: Plug a leak
    
    In case of error, the filename was being leaked.

 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 cfb4722..e482a26 100644
--- a/src/tracker-extract/tracker-extract-gif.c
+++ b/src/tracker-extract/tracker-extract-gif.c
@@ -650,6 +650,7 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
        if ((gifFile = DGifOpenFileHandle (fd, &err)) == NULL) {
                gif_error ("Could not open GIF file with handle", err);
 #endif /* GIFLIB_MAJOR < 5 */
+               g_free (filename);
                close (fd);
                return FALSE;
        }


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