[libsoup] http2: Fix a memory leak in case of IO error
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] http2: Fix a memory leak in case of IO error
- Date: Mon, 22 Nov 2021 11:25:51 +0000 (UTC)
commit ddcd3beb3bb057cb75fa43337a49a5602112886f
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Mon Nov 22 12:11:53 2021 +0100
http2: Fix a memory leak in case of IO error
libsoup/http2/soup-client-message-io-http2.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/libsoup/http2/soup-client-message-io-http2.c b/libsoup/http2/soup-client-message-io-http2.c
index 26bcf99b..e5d08106 100644
--- a/libsoup/http2/soup-client-message-io-http2.c
+++ b/libsoup/http2/soup-client-message-io-http2.c
@@ -1652,6 +1652,7 @@ soup_client_message_io_http2_destroy (SoupClientMessageIO *iface)
g_clear_pointer (&io->messages, g_hash_table_unref);
g_clear_pointer (&io->closed_messages, g_hash_table_unref);
g_clear_pointer (&io->pending_io_messages, g_list_free);
+ g_clear_error (&io->error);
g_free (io);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]