forked from espressif/esp-protocols
fix(websocket): use proper interface to delete semaphore
On most implementations, including ESP-IDF FreeRTOS, vSemaphoreDelete() is a macro that calls vQueueDelete(). But since the client semaphore is created with xSemaphoreCreateRecursiveMutex(), delete it as a semaphore with vSemaphoreDelete().
This commit is contained in:
@ -434,7 +434,7 @@ static void destroy_and_free_resources(esp_websocket_client_handle_t client)
|
||||
if (client->transport_list) {
|
||||
esp_transport_list_destroy(client->transport_list);
|
||||
}
|
||||
vQueueDelete(client->lock);
|
||||
vSemaphoreDelete(client->lock);
|
||||
free(client->tx_buffer);
|
||||
free(client->rx_buffer);
|
||||
free(client->errormsg_buffer);
|
||||
|
Reference in New Issue
Block a user