summaryrefslogtreecommitdiff
path: root/contrib/session-helper
diff options
context:
space:
mode:
authorTim Waugh <twaugh@redhat.com>2015-02-23 09:56:12 +0000
committerTim Waugh <twaugh@redhat.com>2015-02-23 09:56:12 +0000
commit301f24d02158f1e12a2e7ccdf9970d02ecddd534 (patch)
tree470ed40dff5b5807322f4d37a0e8e26eacc58b57 /contrib/session-helper
parentfc55182bd3e642a788b49c188ee54de35c8ea50f (diff)
downloadcolord-301f24d02158f1e12a2e7ccdf9970d02ecddd534.tar.gz
Fix session-helper failing to find argyll tool.
We don't want to free the thing we're trying to return. This fixes the bug introduced in commit b6f7c4d117a06f059a6e852e2dce8c13a3bb1f2c. See: https://bugzilla.redhat.com/show_bug.cgi?id=1190720
Diffstat (limited to 'contrib/session-helper')
-rw-r--r--contrib/session-helper/cd-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/session-helper/cd-main.c b/contrib/session-helper/cd-main.c
index 61e0c5b..0f93697 100644
--- a/contrib/session-helper/cd-main.c
+++ b/contrib/session-helper/cd-main.c
@@ -939,7 +939,7 @@ cd_main_find_argyll_tool (const gchar *command,
GError **error)
{
gboolean ret;
- _cleanup_free_ gchar *filename = NULL;
+ gchar *filename;
/* try the original argyllcms filename installed in /usr/local/bin */
filename = g_strdup_printf ("/usr/local/bin/%s", command);