summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-21 15:57:00 +0200
committerraveit65 <[email protected]>2023-05-11 18:34:20 +0200
commit516275e2716ed5cbf8c1c52849fe04d934814791 (patch)
tree42f49532c1ea56bd0b33a4f34c38d40ba836ea26
parent954106793cfba1cc5bb3a740dd14373ff30ee14f (diff)
downloadmate-notification-daemon-516275e2716ed5cbf8c1c52849fe04d934814791.tar.bz2
mate-notification-daemon-516275e2716ed5cbf8c1c52849fe04d934814791.tar.xz
mnd-daemon: fix memory leak
-rw-r--r--src/daemon/mnd-daemon.c3
1 files changed, 3 insertions, 0 deletions
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);