summaryrefslogtreecommitdiff
path: root/rest/rest-proxy-call.c
diff options
context:
space:
mode:
authorEitan Isaacson <eitan@monotonous.org>2011-02-15 15:03:17 -0800
committerRob Bradford <rob@linux.intel.com>2011-02-22 11:39:25 +0000
commit18a525d90de3ffe9c9b48233ef61c60eda450518 (patch)
tree88dc99e0b5b6d77dc5fbb2d594238317aca462fc /rest/rest-proxy-call.c
parentdb9aefd94e376fb5a984bd59f860adb0abae532d (diff)
downloadlibrest-18a525d90de3ffe9c9b48233ef61c60eda450518.tar.gz
proxy-call: Fix memory leaks in multipart form REST calls.
https://bugs.meego.com/show_bug.cgi?id=13726
Diffstat (limited to 'rest/rest-proxy-call.c')
-rw-r--r--rest/rest-proxy-call.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
index efd8a05..22272f8 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -780,10 +780,14 @@ prepare_message (RestProxyCall *call, GError **error_out)
rest_param_get_file_name (param),
rest_param_get_content_type (param),
sb);
+
+ soup_buffer_free (sb);
}
}
message = soup_form_request_new_from_multipart (priv->url, mp);
+
+ soup_multipart_free (mp);
}
/* Set the user agent, if one was set in the proxy */