diff options
author | 2019-08-07 15:56:19 +0200 | |
---|---|---|
committer | 2019-08-20 13:27:52 +0900 | |
commit | 3896bdaa68de96b8fffaa9233d87ba19c176db50 (patch) | |
tree | a91045048d5e6c57b1b4a8c97337817f554baa05 | |
parent | layer_shell: Guard against negative exclusive zone (diff) | |
download | sway-3896bdaa68de96b8fffaa9233d87ba19c176db50.tar.gz sway-3896bdaa68de96b8fffaa9233d87ba19c176db50.tar.zst sway-3896bdaa68de96b8fffaa9233d87ba19c176db50.zip |
ipc-client: remove useless free for failed malloc
-rw-r--r-- | common/ipc-client.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/common/ipc-client.c b/common/ipc-client.c index 4750a289..ec0454c9 100644 --- a/common/ipc-client.c +++ b/common/ipc-client.c | |||
@@ -117,7 +117,6 @@ struct ipc_response *ipc_recv_response(int socketfd) { | |||
117 | return response; | 117 | return response; |
118 | error_2: | 118 | error_2: |
119 | free(response); | 119 | free(response); |
120 | free(payload); | ||
121 | error_1: | 120 | error_1: |
122 | sway_log(SWAY_ERROR, "Unable to allocate memory for IPC response"); | 121 | sway_log(SWAY_ERROR, "Unable to allocate memory for IPC response"); |
123 | return NULL; | 122 | return NULL; |