[libsoup] Don't leak the SoupMessage and SoupSession objects in the examples/get utility
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] Don't leak the SoupMessage and SoupSession objects in the examples/get utility
- Date: Thu, 22 Jun 2017 13:52:16 +0000 (UTC)
commit 97a69ff9d38ee4fab8a507fc36ae08555adc5611
Author: Tomas Popela <tpopela redhat com>
Date: Fri May 19 14:38:06 2017 +0200
Don't leak the SoupMessage and SoupSession objects in the examples/get utility
examples/get.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/examples/get.c b/examples/get.c
index a760592..60f56f5 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]