summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2012-02-24 13:00:13 +0000
committerRoss Burton <ross.burton@intel.com>2012-02-24 13:00:13 +0000
commit936aef6d6ec58f537997a1c2922ba4d34738dd18 (patch)
treeac896c7d0fb14a0ae3cceab1de131ddee361373f
parentdaa97cf6093b93f064a61b126eb1281b9fba276b (diff)
Don't leak ->url in rest_proxy_call_sync (#669764)
-rw-r--r--rest/rest-proxy-call.c3
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;
}