summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2021-08-26 14:44:07 +0200
committerBastien Nocera <hadess@hadess.net>2021-08-30 10:12:18 +0000
commitd71284bf50da22ae8869ffe09ae7abd2dab0be77 (patch)
tree9c9385ca9a0cc374ae7d69521783213fedc6c472
parentf48f0183a075e5f95629f6373b11f0255d704de9 (diff)
downloadgrilo-d71284bf50da22ae8869ffe09ae7abd2dab0be77.tar.gz
net: Fix double-free when using GrlNet in Python
grl_net_wc_request_finish() claims to have a "transfer full" content argument but it actually returns a pointer to a variable inside the GrlNetWc object, leading to possible double-frees.
-rw-r--r--libs/net/grl-net-wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/net/grl-net-wc.c b/libs/net/grl-net-wc.c
index 5ff1d17..2d68f93 100644
--- a/libs/net/grl-net-wc.c
+++ b/libs/net/grl-net-wc.c
@@ -948,7 +948,7 @@ grl_net_wc_request_with_headers_hash_async (GrlNetWc *self,
* @self: a #GrlNetWc instance
* @result: The result of the request
* @content: (out) (array length=length) (element-type guint8) (allow-none)
- * (transfer full): The contents of the resource
+ * (transfer none): The contents of the resource
* @length: (out) (allow-none): The length of the contents or %NULL if it is not
* needed
* @error: return location for a #GError, or %NULL