[core,gateway] cleanup http response

This commit is contained in:
akarl10
2023-07-05 08:57:17 +02:00
committed by akallabeth
parent 18185e9dbc
commit 76abdcdabf
2 changed files with 2 additions and 0 deletions

View File

@@ -378,6 +378,7 @@ BOOL arm_resolve_endpoint(rdpContext* context, DWORD timeout)
rc = TRUE;
arm_error:
http_response_free(response);
arm_free(arm);
free(message);
return rc;

View File

@@ -339,6 +339,7 @@ BOOL http_context_enable_websocket_upgrade(HttpContext* context, BOOL enable)
if (winpr_RAND(key, sizeof(key)) != 0)
return FALSE;
free(context->SecWebsocketKey);
context->SecWebsocketKey = crypto_base64_encode(key, sizeof(key));
if (!context->SecWebsocketKey)
return FALSE;