ipc-client: remove useless free for failed malloc

master
Antonin Décimo 5 years ago committed by Drew DeVault
parent dac9c9c72b
commit 1d6d26cdec

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

Loading…
Cancel
Save