From ea23cc8b33a753ab17b8f698898b1b715223a895 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 21 Oct 2021 15:57:00 +0200 Subject: mnd-daemon: fix memory leak --- src/daemon/mnd-daemon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/daemon/mnd-daemon.c b/src/daemon/mnd-daemon.c index 81a0b99..fde743d 100644 --- a/src/daemon/mnd-daemon.c +++ b/src/daemon/mnd-daemon.c @@ -63,12 +63,15 @@ static gboolean parse_arguments (int *argc, char ***argv) error = NULL; if (g_option_context_parse (context, argc, argv, &error) == FALSE) { + g_option_context_free (context); g_warning ("Failed to parse command line arguments: %s", error->message); g_error_free (error); return FALSE; } + g_option_context_free (context); + if (debug) g_setenv ("G_MESSAGES_DEBUG", "all", FALSE); -- cgit v1.2.1