1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36:38 +02:00

relay/api: remove unneeded free of client->http_req->id

This commit is contained in:
Sébastien Helleu
2024-08-11 12:27:37 +02:00
parent a317c785fb
commit 970aa55f7f
@@ -993,7 +993,6 @@ relay_api_protocol_recv_json (struct t_relay_client *client, const char *json)
{
if (!cJSON_IsString (json_request_id) && !cJSON_IsNull (json_request_id))
goto error;
free (client->http_req->id);
ptr_request_id = cJSON_GetStringValue (json_request_id);
client->http_req->id = (ptr_request_id) ?
strdup (ptr_request_id) : NULL;