summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-02-25 23:51:31 -0500
committerMatthias Clasen <mclasen@redhat.com>2013-02-26 06:05:04 -0500
commitb8b5c5f2688efee6eea14e6c088ccd3abc424cd8 (patch)
treebe2012cf1365f9de37ef4baf38b273654ac96b3d
parent117696c67c9a512b710f7f7940092ae113a16e1e (diff)
downloadtracker-0.14.tar.gz
Avoid a double-free in the png extractortracker-0.14
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
-rw-r--r--src/tracker-extract/tracker-extract-png.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tracker-extract/tracker-extract-png.c b/src/tracker-extract/tracker-extract-png.c
index eea147f9e..58d19d3ee 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);