From: Michael Stapelberg Date: Thu, 15 May 2014 21:50:09 +0000 (+0200) Subject: i3-input: fix (irrelevant) memory leak X-Git-Tag: 4.8~42 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e2f47ef4668e5f9f55ac271025790f5abf657f08;p=i3%2Fi3 i3-input: fix (irrelevant) memory leak 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. --- 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;