[libsoup/217-static-analyzers-issues-reported-for-2-72-0] Fix leaks found by Coverity Scan
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/217-static-analyzers-issues-reported-for-2-72-0] Fix leaks found by Coverity Scan
- Date: Wed, 17 Mar 2021 17:49:56 +0000 (UTC)
commit fe1e295d86924ba291dbd3d24904ec47fd945eb6
Author: Milan Crha <mcrha redhat com>
Date: Wed Mar 17 18:49:22 2021 +0100
Fix leaks found by Coverity Scan
Closes #217
libsoup/soup-directory-input-stream.c | 1 +
libsoup/soup-message-server-io.c | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/libsoup/soup-directory-input-stream.c b/libsoup/soup-directory-input-stream.c
index 572f167e..895c50a7 100644
--- a/libsoup/soup-directory-input-stream.c
+++ b/libsoup/soup-directory-input-stream.c
@@ -96,6 +96,7 @@ soup_directory_input_stream_parse_info (SoupDirectoryInputStream *stream,
g_free (date);
g_free (escaped);
g_free (size);
+ g_free (name);
g_free (path);
g_free (xml_string);
g_string_free (string, FALSE);
diff --git a/libsoup/soup-message-server-io.c b/libsoup/soup-message-server-io.c
index 71e943b6..77e9e02b 100644
--- a/libsoup/soup-message-server-io.c
+++ b/libsoup/soup-message-server-io.c
@@ -74,6 +74,7 @@ parse_request_headers (SoupMessage *msg, char *headers, guint headers_len,
/* Handle request body encoding */
*encoding = soup_message_headers_get_encoding (msg->request_headers);
if (*encoding == SOUP_ENCODING_UNRECOGNIZED) {
+ g_free (req_path);
if (soup_message_headers_get_list (msg->request_headers, "Transfer-Encoding"))
return SOUP_STATUS_NOT_IMPLEMENTED;
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]