[gnome-software] trivial: Fix tiny leak in the fwupd plugin
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix tiny leak in the fwupd plugin
- Date: Wed, 18 May 2016 20:12:58 +0000 (UTC)
commit a7588806d4e5e483a482e8498aedde3df64ecc32
Author: Richard Hughes <richard hughsie com>
Date: Wed May 18 19:44:23 2016 +0100
trivial: Fix tiny leak in the fwupd plugin
src/plugins/gs-plugin-fwupd.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-fwupd.c b/src/plugins/gs-plugin-fwupd.c
index 0a3ea1e..80209c7 100644
--- a/src/plugins/gs-plugin-fwupd.c
+++ b/src/plugins/gs-plugin-fwupd.c
@@ -788,6 +788,7 @@ gs_plugin_file_to_app (GsPlugin *plugin,
{
GsPluginData *priv = gs_plugin_get_data (plugin);
g_autofree gchar *content_type = NULL;
+ g_autofree gchar *filename = NULL;
g_autoptr(FwupdResult) res = NULL;
g_autoptr(GsApp) app = NULL;
const gchar *mimetypes[] = {
@@ -802,8 +803,9 @@ gs_plugin_file_to_app (GsPlugin *plugin,
return TRUE;
/* get results */
+ filename = g_file_get_path (file);
res = fwupd_client_get_details (priv->client,
- g_file_get_path (file),
+ filename,
cancellable,
error);
if (res == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]