[librest] Don't leak ->url in rest_proxy_call_sync (#669764)
- From: Ross Burton <rburton src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest] Don't leak ->url in rest_proxy_call_sync (#669764)
- Date: Fri, 24 Feb 2012 13:01:11 +0000 (UTC)
commit 936aef6d6ec58f537997a1c2922ba4d34738dd18
Author: Ross Burton <ross burton intel com>
Date: Fri Feb 24 13:00:13 2012 +0000
Don't leak ->url in rest_proxy_call_sync (#669764)
rest/rest-proxy-call.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
index 4d45a16..72651c1 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -1263,6 +1263,9 @@ rest_proxy_call_sync (RestProxyCall *call,
g_object_unref (message);
+ g_free (priv->url);
+ priv->url = NULL;
+
return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]