summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-05-20 12:14:17 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-05-20 12:14:17 +0200
commitd793d7caaf3e7e7b79c39fda043cd09837d087cf (patch)
tree5f42c67d53ae4634bb285978ec2d4c3d91e49660 /bin
parentc9ead66f22774ed6be6cc670acbd60e8560cd273 (diff)
launch: free some resources
Diffstat (limited to 'bin')
-rw-r--r--bin/ufo-launch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ufo-launch.c b/bin/ufo-launch.c
index c4cecc4..7df9f8d 100644
--- a/bin/ufo-launch.c
+++ b/bin/ufo-launch.c
@@ -133,7 +133,6 @@ tokenize_args (const gchar *pipeline)
return tokens;
}
-
static void
set_property (UfoTaskNode *task, const gchar *key, const gchar *pvalue)
{
@@ -357,7 +356,7 @@ main(int argc, char* argv[])
pipeline = g_strjoinv (" ", &argv[1]);
tokens = tokenize_args (pipeline);
graph = parse (pipeline, tokens, pm, &error);
- g_free (pipeline);
+ g_list_free_full (tokens, g_free);
if (graph == NULL) {
if (error != NULL)
@@ -429,6 +428,7 @@ main(int argc, char* argv[])
g_object_unref (sched);
g_object_unref (pm);
g_strfreev (addresses);
+ g_option_context_free (context);
return 0;
}