From 970aa55f7f48d09c8c4cec6c5a9d0f72f8b1ce3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 11 Aug 2024 12:27:37 +0200 Subject: [PATCH] relay/api: remove unneeded free of client->http_req->id --- src/plugins/relay/api/relay-api-protocol.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/plugins/relay/api/relay-api-protocol.c b/src/plugins/relay/api/relay-api-protocol.c index edca0ba16..6300e2b4f 100644 --- a/src/plugins/relay/api/relay-api-protocol.c +++ b/src/plugins/relay/api/relay-api-protocol.c @@ -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;