[grilo] net: Pull some leaks



commit 9a38b0d35d0486ddd051c6144a659877a67c440f
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Sun Sep 1 09:48:59 2013 +0000

    net: Pull some leaks

 libs/net/grl-net-mock.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libs/net/grl-net-mock.c b/libs/net/grl-net-mock.c
index 5795047..6541947 100644
--- a/libs/net/grl-net-mock.c
+++ b/libs/net/grl-net-mock.c
@@ -67,6 +67,7 @@ get_url_mocked (GrlNetWc *self,
     soup_uri_set_query (uri, *new_query ? new_query : NULL);
     new_url = soup_uri_to_string (uri, FALSE);
     soup_uri_free (uri);
+    g_free (new_query);
   } else {
     new_url = g_strdup (url);
   }
@@ -230,6 +231,9 @@ void init_mock_requester (GrlNetWc *self)
                    "for ignored query parameters: %s", error->message);
       g_clear_error (&error);
     }
+
+    g_strfreev (parameter_names);
+    g_string_free (pattern, TRUE);
   }
 
   /* Find base path for mock data. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]