summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2017-05-19 14:38:06 +0200
committerTomas Popela <tpopela@redhat.com>2017-06-22 15:50:58 +0200
commit97a69ff9d38ee4fab8a507fc36ae08555adc5611 (patch)
treeba78ac876da64e3f4f041e8512b7a04220519e43 /examples
parentff34150d837181972e6b5ebf47fe3b4470d2ff30 (diff)
downloadlibsoup-97a69ff9d38ee4fab8a507fc36ae08555adc5611.tar.gz
Don't leak the SoupMessage and SoupSession objects in the examples/get utility
Diffstat (limited to 'examples')
-rw-r--r--examples/get.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/get.c b/examples/get.c
index a760592c..60f56f51 100644
--- a/examples/get.c
+++ b/examples/get.c
@@ -90,6 +90,7 @@ get_url (const char *url)
fclose (output_file);
}
}
+ g_object_unref (msg);
}
/* Inline class for providing a pre-configured client certificate */
@@ -287,5 +288,7 @@ main (int argc, char **argv)
if (!synchronous)
g_main_loop_unref (loop);
+ g_object_unref (session);
+
return 0;
}