diff options
author | Tomas Popela <tpopela@redhat.com> | 2017-05-19 14:38:06 +0200 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2017-06-22 15:50:58 +0200 |
commit | 97a69ff9d38ee4fab8a507fc36ae08555adc5611 (patch) | |
tree | ba78ac876da64e3f4f041e8512b7a04220519e43 /examples | |
parent | ff34150d837181972e6b5ebf47fe3b4470d2ff30 (diff) | |
download | libsoup-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.c | 3 |
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; } |