From e2f47ef4668e5f9f55ac271025790f5abf657f08 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 15 May 2014 23:50:09 +0200 Subject: [PATCH] i3-input: fix (irrelevant) memory leak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Given that the code was exit(0)ing directly after using that memory, it’s not like this has any effect. However, less false positives on the clang-analyze report pages is a good thing. --- i3-input/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/i3-input/main.c b/i3-input/main.c index 1c0d6856..c9ebd010 100644 --- a/i3-input/main.c +++ b/i3-input/main.c @@ -214,6 +214,8 @@ static void finish_input() { ipc_send_message(sockfd, strlen(full), 0, (uint8_t*)full); + free(full); + #if 0 free(command); return 1;