Sophie

Sophie

distrib > Fedora > 17 > x86_64 > by-pkgid > aa5c280f918dbb8ccafbd9c04c6ad209 > files > 1

tracker-0.14.5-2.fc17.src.rpm

From 4306640699f53624358ad751cbc15007c7166130 Mon Sep 17 00:00:00 2001
From: Matthias Clasen <mclasen@redhat.com>
Date: Mon, 25 Feb 2013 23:51:31 -0500
Subject: [PATCH] Avoid a double-free in the png extractor

The software member of the exif data was getting freed twice. So
whenever you deal with a png that has this field set to a non-NULL
value, you get a segfault.
https://bugzilla.gnome.org/show_bug.cgi?id=660965
---
 src/tracker-extract/tracker-extract-png.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/tracker-extract/tracker-extract-png.c b/src/tracker-extract/tracker-extract-png.c
index eea147f..58d19d3 100644
--- a/src/tracker-extract/tracker-extract-png.c
+++ b/src/tracker-extract/tracker-extract-png.c
@@ -372,7 +372,6 @@ read_metadata (TrackerSparqlBuilder *preupdate,
 	}
 
 	/* TODO: add ontology and store this ed->software */
-	g_free (ed->software);
 
 	if (md.creator) {
 		gchar *uri = tracker_sparql_escape_uri_printf ("urn:contact:%s", md.creator);
-- 
1.8.1.4