From 55bc2ae6a97b5678d7c63149465a7120f577b6f0 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 8 Jan 2016 20:17:34 +0100 Subject: [PATCH] i3-dump-log: explicitly free shmname Reduces memory usage and makes LeakSanitizer more quiet. --- i3-dump-log/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/i3-dump-log/main.c b/i3-dump-log/main.c index 137554a4..9d4eefc7 100644 --- a/i3-dump-log/main.c +++ b/i3-dump-log/main.c @@ -138,6 +138,7 @@ int main(int argc, char *argv[]) { if (verbose) printf("next_write = %d, last_wrap = %d, logbuffer_size = %d, shmname = %s\n", header->offset_next_write, header->offset_last_wrap, header->size, shmname); + free(shmname); walk = logbuffer + header->offset_next_write; /* We first need to print old content in case there was at least one -- 2.39.5