File gnome-photos-Dont-leak-thumbnailer-path-string.patch of Package gnome-photos.9281
From 88a18f26b3ff979067162f1bdfceabd1d0fa2965 Mon Sep 17 00:00:00 2001
From: Debarshi Ray <debarshir@gnome.org>
Date: Mon, 1 Jan 2018 14:14:46 +0100
Subject: [PATCH] thumbnail-factory: Don't leak the thumbnailer path string
---
src/photos-thumbnail-factory.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/photos-thumbnail-factory.c b/src/photos-thumbnail-factory.c
index bc84500..522c522 100644
--- a/src/photos-thumbnail-factory.c
+++ b/src/photos-thumbnail-factory.c
@@ -440,13 +440,15 @@ photos_thumbnail_factory_generate_thumbnail (PhotosThumbnailFactory *self,
"--address",
address,
NULL);
+
+ g_free (thumbnailer_path);
+
if (local_error != NULL)
goto out;
g_mutex_unlock (&self->mutex_connection);
mutex_connection_unlocked = TRUE;
- g_free (thumbnailer_path);
g_object_unref (subprocess);
}
--
libgit2 0.26.0