diff options
Diffstat (limited to 'libsoup')
-rw-r--r-- | libsoup/auth/soup-auth-negotiate.c | 2 | ||||
-rw-r--r-- | libsoup/soup-message-headers.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libsoup/auth/soup-auth-negotiate.c b/libsoup/auth/soup-auth-negotiate.c index 46bd41bd..c022f1a9 100644 --- a/libsoup/auth/soup-auth-negotiate.c +++ b/libsoup/auth/soup-auth-negotiate.c @@ -202,6 +202,7 @@ soup_auth_negotiate_get_connection_authorization (SoupConnectionAuth *auth, } if (!soup_gss_build_response (conn, SOUP_AUTH (auth), &err)) { + g_assert (err); /* Silence scan-build */ /* FIXME: report further upward via * soup_message_get_error_message */ if (conn->initialized) @@ -276,6 +277,7 @@ soup_auth_negotiate_update_connection (SoupConnectionAuth *auth, SoupMessage *ms } goto out; } else { + g_assert (err); /* Silence scan-build */ /* FIXME: report further upward via * soup_message_get_error_message */ if (conn->initialized) diff --git a/libsoup/soup-message-headers.c b/libsoup/soup-message-headers.c index b261460f..c84d7504 100644 --- a/libsoup/soup-message-headers.c +++ b/libsoup/soup-message-headers.c @@ -296,7 +296,9 @@ soup_message_headers_remove (SoupMessageHeaders *hdrs, const char *name) name = intern_header_name (name, &setter); while ((index = find_header (hdr_array, name, 0)) != -1) { +#ifndef __clang_analyzer__ /* False positive for double-free */ g_free (hdr_array[index].value); +#endif g_array_remove_index (hdrs->array, index); } if (hdrs->concat) |