From a52459f1321cf621338125d1e928d052a3fd1833 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 26 Aug 2021 14:44:07 +0200 Subject: 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. --- libs/net/grl-net-wc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1