From: Michael Stapelberg Date: Fri, 8 Jan 2016 19:17:34 +0000 (+0100) Subject: i3-dump-log: explicitly free shmname X-Git-Tag: 4.12~63 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=55bc2ae6a97b5678d7c63149465a7120f577b6f0;p=i3%2Fi3 i3-dump-log: explicitly free shmname Reduces memory usage and makes LeakSanitizer more quiet. --- 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