From 42a418e60fb5d3dfbcd9bdc5251bf4a6047bc3c5 Mon Sep 17 00:00:00 2001 From: dequis Date: Wed, 25 Nov 2015 22:58:20 -0300 Subject: help: free strings added by help_add_mem() Not really a leak, but I want valgrind to be happy because valgrind is nice to me. I love you valgrind <3 --- help.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'help.c') diff --git a/help.c b/help.c index 07ba2102..280d4862 100644 --- a/help.c +++ b/help.c @@ -104,7 +104,9 @@ void help_free(help_t **help) h = *help; while (h) { - if (h->fd != last_fd) { + if (h->fd == -1) { + g_free(h->offset.mem_offset); + } else if (h->fd != last_fd) { close(h->fd); last_fd = h->fd; } -- cgit v1.2.3