summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-21 15:57:00 +0200
committerLuke from DC <[email protected]>2022-12-13 02:40:04 +0000
commitea23cc8b33a753ab17b8f698898b1b715223a895 (patch)
tree693b693cae576d16437d8d32fde5c228f5888d4c
parent989bb267a48015db9fe31f56e240076c2fbd0306 (diff)
downloadmate-notification-daemon-ea23cc8b33a753ab17b8f698898b1b715223a895.tar.bz2
mate-notification-daemon-ea23cc8b33a753ab17b8f698898b1b715223a895.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);