summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2013-09-16 13:12:13 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2013-09-20 11:43:05 +0200
commit631f2c10117dd54f72676f8a0adc668c90f1ca97 (patch)
treec37f6db081583d362cd15f85e615637d8ac24e84
parent4d2c76683116156048fa06185ca116bd8458929c (diff)
downloadlibrest-631f2c10117dd54f72676f8a0adc668c90f1ca97.tar.gz
Fix rest_proxy_call_get_params() API doc
The returned type was wrong as well as who owns the returned memory, which could lead to memory corruption.
-rw-r--r--rest/rest-proxy-call.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
index a6533c3..17121ac 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -508,10 +508,11 @@ rest_proxy_call_remove_param (RestProxyCall *call,
* rest_proxy_call_get_params:
* @call: The #RestProxyCall
*
- * Get the parameters as a #GHashTable of parameter names to values. The caller
- * should call g_hash_table_unref() when they have finished using it.
+ * Get the parameters as a #GHashTable of parameter names to values. The
+ * returned value is owned by the RestProxyCall instance and should not
+ * be freed by the caller.
*
- * Returns: A #GHashTable.
+ * Returns: A #RestParams.
*/
RestParams *
rest_proxy_call_get_params (RestProxyCall *call)