ipc-client: remove useless free for failed malloc

This commit is contained in:
Antonin Décimo 2019-08-07 15:56:19 +02:00
parent 6e0565e9de
commit c0656da591

View file

@ -117,7 +117,6 @@ struct ipc_response *ipc_recv_response(int socketfd) {
return response;
error_2:
free(response);
free(payload);
error_1:
sway_log(SWAY_ERROR, "Unable to allocate memory for IPC response");
return NULL;