diff options
author | Bastien Nocera <hadess@hadess.net> | 2021-08-26 14:44:07 +0200 |
---|---|---|
committer | Victor Toso <victortoso@gnome.org> | 2021-10-04 07:56:37 +0000 |
commit | a52459f1321cf621338125d1e928d052a3fd1833 (patch) | |
tree | 7ce2e9b69770a6f56f2188399b030e677584282a | |
parent | 02e71fbe80b86169ea646f9535e3f998bc215dcb (diff) | |
download | grilo-a52459f1321cf621338125d1e928d052a3fd1833.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.c | 2 |
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 |