These could catch situations where an already freed object's refcount is
attempted to be increased.
void http_client_connection_ref(struct http_client_connection *conn)
{
+ i_assert(conn->refcount > 0);
conn->refcount++;
}
void http_client_request_ref(struct http_client_request *req)
{
+ i_assert(req->refcount > 0);
req->refcount++;
}
void http_server_connection_ref(struct http_server_connection *conn)
{
+ i_assert(conn->refcount > 0);
conn->refcount++;
}
void http_server_request_ref(struct http_server_request *req)
{
+ i_assert(req->refcount > 0);
req->refcount++;
}